Fix any issues tests didn't pick up on
diff --git a/gstack/controllers/networks.py b/gstack/controllers/networks.py
index b8a0726..d2b5fd4 100644
--- a/gstack/controllers/networks.py
+++ b/gstack/controllers/networks.py
@@ -28,7 +28,7 @@
def get_network_by_name(authorization, network):
- args = {'command': 'SecurityGroups'}
+ args = {'command': 'listSecurityGroups'}
return controllers.get_item_with_name(authorization, network, args, 'securitygroup')
@@ -48,7 +48,7 @@
def _delete_network(authorization, projectid, network):
- args = {'command': 'SecurityGroups'}
+ args = {'command': 'listSecurityGroups'}
network_response = controllers.get_item_with_name(authorization, network, args, 'securitygroup')
if not network_response:
return None
diff --git a/gstack/controllers/regions.py b/gstack/controllers/regions.py
index 136e5e0..2ceda7f 100755
--- a/gstack/controllers/regions.py
+++ b/gstack/controllers/regions.py
@@ -41,7 +41,7 @@
args = {'command': 'listAccounts'}
kwargs = {}
items = controllers.describe_items(
- authorization, args, 'region',
+ authorization, args, 'account',
_cloudstack_account_to_gce, **kwargs)
populated_response = {
@@ -59,5 +59,5 @@
func_route = url_for('getregion', projectid=projectid, region=region)
args = {'command': 'listAccounts'}
return controllers.get_item_with_name_or_error(
- authorization, region, args, 'region', func_route,
+ authorization, region, args, 'account', func_route,
_cloudstack_account_to_gce, **{})