From 44fb5bd7ba366cf052b69e9b609dcba7bfebca52 Mon Sep 17 00:00:00 2001 From: BroganD1993 Date: Fri, 18 Jul 2014 20:10:49 +0100 Subject: [PATCH] Shhh travis, it'll all be over soon --- ec2stack/configure.py | 1 + ec2stack/errors.py | 2 ++ ec2stack/providers/cloudstack/vpcs.py | 3 +-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ec2stack/configure.py b/ec2stack/configure.py index 3fa337d..cc2e6f6 100644 --- a/ec2stack/configure.py +++ b/ec2stack/configure.py @@ -104,6 +104,7 @@ def _modify_config_profile(config_file, profile, advanced_network_enabled): return config + def _set_mandatory_attributes_of_profile(config, profile): """ Modify mandatory attributes of profile. diff --git a/ec2stack/errors.py b/ec2stack/errors.py index ba170bf..1e50ea0 100644 --- a/ec2stack/errors.py +++ b/ec2stack/errors.py @@ -162,6 +162,7 @@ def invalid_resource_id(): 'The specified ID for the resource you are trying to tag is not valid.' ) + def invalid_vpc_range(): """ Invalid cidr block. @@ -174,6 +175,7 @@ def invalid_vpc_range(): 'The specified CIDR block range is not valid.' ) + def invalid_vpc_id(): """ VPC with this ID does not exist. diff --git a/ec2stack/providers/cloudstack/vpcs.py b/ec2stack/providers/cloudstack/vpcs.py index 7386e3f..55c81d8 100644 --- a/ec2stack/providers/cloudstack/vpcs.py +++ b/ec2stack/providers/cloudstack/vpcs.py @@ -1,4 +1,3 @@ - #!/usr/bin/env python # encoding: utf-8 @@ -101,6 +100,7 @@ def _delete_vpc_response(): 'return': 'true' } + @helpers.authentication_required def describe_vpcs(): """ @@ -130,4 +130,3 @@ def _describe_vpc_response(response): 'response_type': 'DescribeVpcsResponse', 'response': response } -