From 8095aa65844c46b47a02fdbad0c90d8f44305f20 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 10 Feb 2014 16:12:32 -0600 Subject: [PATCH] Don't set a default disk_config. Defaulting to 'auto', causes issues with new images --- library/cloud/rax | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/cloud/rax b/library/cloud/rax index 46302bc851a..dc4b2fa9b62 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -645,7 +645,7 @@ def main(): auto_increment=dict(choices=BOOLEANS, default=True, type='bool'), count=dict(default=1, type='int'), count_offset=dict(default=1, type='int'), - disk_config=dict(default='auto', choices=['auto', 'manual']), + disk_config=dict(choices=['auto', 'manual']), exact_count=dict(choices=BOOLEANS, default=False, type='bool'), files=dict(type='dict', default={}), flavor=dict(), @@ -678,7 +678,9 @@ def main(): auto_increment = module.params.get('auto_increment') count = module.params.get('count') count_offset = module.params.get('count_offset') - disk_config = module.params.get('disk_config').upper() + disk_config = module.params.get('disk_config') + if disk_config: + disk_config = disk_config.upper() exact_count = module.params.get('exact_count', False) files = module.params.get('files') flavor = module.params.get('flavor')