Merge "Allow security_groups to be a scalar"
This commit is contained in:
commit
abbf0c8d1b
@ -4971,6 +4971,10 @@ class OpenStackCloud(_normalize.Normalizer):
|
||||
if root_volume and not boot_volume:
|
||||
boot_volume = root_volume
|
||||
|
||||
if 'security_groups' in kwargs and not isinstance(
|
||||
kwargs['security_groups'], list):
|
||||
kwargs['security_groups'] = [kwargs['security_groups']]
|
||||
|
||||
if 'nics' in kwargs and not isinstance(kwargs['nics'], list):
|
||||
if isinstance(kwargs['nics'], dict):
|
||||
# Be nice and help the user out
|
||||
|
Loading…
x
Reference in New Issue
Block a user