cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seb...@apache.org
Subject [37/50] cloudstack-ec2stack git commit: add support for --subnet-id
Date Tue, 05 May 2015 13:26:30 GMT
add support for --subnet-id


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/commit/272a98a5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/tree/272a98a5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/diff/272a98a5

Branch: refs/heads/master
Commit: 272a98a51e01d21cedc5dbcdb190157fda1253a3
Parents: 859455f
Author: Nuno Tavares <n.tavares@tech.leaseweb.com>
Authored: Thu Dec 4 11:30:40 2014 +0100
Committer: Nuno Tavares <n.tavares@tech.leaseweb.com>
Committed: Thu Dec 4 11:30:40 2014 +0100

----------------------------------------------------------------------
 ec2stack/providers/cloudstack/instances.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/blob/272a98a5/ec2stack/providers/cloudstack/instances.py
----------------------------------------------------------------------
diff --git a/ec2stack/providers/cloudstack/instances.py b/ec2stack/providers/cloudstack/instances.py
index 01d2127..7ed22ab 100644
--- a/ec2stack/providers/cloudstack/instances.py
+++ b/ec2stack/providers/cloudstack/instances.py
@@ -226,6 +226,9 @@ def _run_instance_request():
 
         args['securitygroupnames'] = ",".join(securitygroupnames)
 
+    if helpers.get('SubnetId') is not None:
+        args['networkids'] = helpers.get('SubnetId')
+
     args['command'] = 'deployVirtualMachine'
 
     response = requester.make_request_async(args)


Mime
View raw message