Skip to content
Permalink
Browse files
Fix error in getzone
  • Loading branch information
brogand93 committed May 28, 2014
1 parent fec6b6c commit 3f1e3ff81636ac8eedc0a7165fb844d3749d4b0c
Showing 1 changed file with 2 additions and 3 deletions.
@@ -100,8 +100,7 @@ def listzones(projectid, authorization):
return helper.create_response(data=populated_response)


@app.route(
'/' + app.config['PATH'] + '<projectid>/zones/<zone>', methods=['GET'])
@app.route('/' + app.config['PATH'] + '<projectid>/zones/<zone>', methods=['GET'])
@authentication.required
def getzone(projectid, authorization, zone):
response = get_zone_by_name(
@@ -111,7 +110,7 @@ def getzone(projectid, authorization, zone):

if response:
return helper.create_response(
data=_cloudstack_zone_to_gce(zone)
data=_cloudstack_zone_to_gce(response)
)
else:
func_route = url_for('getzone', projectid=projectid, zone=zone)

0 comments on commit 3f1e3ff

Please sign in to comment.