diff --git a/awsapi-setup/setup/cloudstack-aws-api-register b/awsapi-setup/setup/cloudstack-aws-api-register index bb8fe6308ef..5f8fe7671d3 100644 --- a/awsapi-setup/setup/cloudstack-aws-api-register +++ b/awsapi-setup/setup/cloudstack-aws-api-register @@ -30,7 +30,7 @@ def get_url(url, api_key, secret_key, action, query): urllib2.urlopen(url) if action == 'SetCertificate': print 'User registration is successful!' - return True + return True except urllib2.HTTPError, e: print 'User registration failed with http error code:' , e.code return False