Permalink
Browse files

Use _encode_bool instead of encode_bool for beanstalk layer1

  • Loading branch information...
1 parent 4554b9f commit bab5d1dc91780bde4cecb4df05f4c74ec7be194e @jamesls jamesls committed Sep 5, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 boto/beanstalk/layer1.py
View
@@ -154,7 +154,7 @@ def create_application_version(self, application_name, version_label,
params['SourceBundle.S3Bucket'] = s3_bucket
params['SourceBundle.S3Key'] = s3_key
if auto_create_application:
- params['AutoCreateApplication'] = self.encode_bool(
+ params['AutoCreateApplication'] = self._encode_bool(
auto_create_application)
return self._get_response('CreateApplicationVersion', params)
@@ -646,7 +646,7 @@ def describe_environments(self, application_name=None, version_label=None,
self.build_list_params(params, environment_names,
'EnvironmentNames.member')
if include_deleted:
- params['IncludeDeleted'] = self.encode_bool(include_deleted)
+ params['IncludeDeleted'] = self._encode_bool(include_deleted)
if included_deleted_back_to:
params['IncludedDeletedBackTo'] = included_deleted_back_to
return self._get_response('DescribeEnvironments', params)
@@ -1149,10 +1149,6 @@ def validate_configuration_settings(self, application_name,
params['EnvironmentName'] = environment_name
return self._get_response('ValidateConfigurationSettings', params)
- def encode_bool(self, v):
- v = bool(v)
- return {True: "true", False: "false"}[v]
-
def _build_list_params(self, params, user_values, prefix, tuple_names):
# For params such as the ConfigurationOptionSettings,
# they can specify a list of tuples where each tuple maps to a specific

0 comments on commit bab5d1d

Please sign in to comment.