Fix anything tests didn't pick up
Project: http://git-wip-us.apache.org/repos/asf/cloudstack-gcestack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-gcestack/commit/4ffa677f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-gcestack/tree/4ffa677f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-gcestack/diff/4ffa677f Branch: refs/heads/master Commit: 4ffa677f0c50d535136d983820b48c39e125b447 Parents: 1fc107a Author: BroganD1993 <darrenbro...@hotmail.com> Authored: Fri Jun 20 19:17:56 2014 +0100 Committer: BroganD1993 <darrenbro...@hotmail.com> Committed: Fri Jun 20 19:17:56 2014 +0100 ---------------------------------------------------------------------- gstack/controllers/regions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-gcestack/blob/4ffa677f/gstack/controllers/regions.py ---------------------------------------------------------------------- diff --git a/gstack/controllers/regions.py b/gstack/controllers/regions.py index 2ceda7f..dbaf5b7 100755 --- a/gstack/controllers/regions.py +++ b/gstack/controllers/regions.py @@ -38,10 +38,10 @@ def _cloudstack_account_to_gce(cloudstack_response): @app.route('/compute/v1/projects/<projectid>/regions', methods=['GET']) @authentication.required def listregions(projectid, authorization): - args = {'command': 'listAccounts'} + args = {'command': 'listRegions'} kwargs = {} items = controllers.describe_items( - authorization, args, 'account', + authorization, args, 'region', _cloudstack_account_to_gce, **kwargs) populated_response = { @@ -57,7 +57,7 @@ def listregions(projectid, authorization): @authentication.required def getregion(projectid, authorization, region): func_route = url_for('getregion', projectid=projectid, region=region) - args = {'command': 'listAccounts'} + args = {'command': 'listRegions'} return controllers.get_item_with_name_or_error( - authorization, region, args, 'account', func_route, + authorization, region, args, 'region', func_route, _cloudstack_account_to_gce, **{})