diff options
| author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-06-15 14:47:18 +0900 |
|---|---|---|
| committer | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-06-15 14:47:18 +0900 |
| commit | c7e8f9ff46758ddbeecd049083bece013301bb59 (patch) | |
| tree | 86cd89fd4a076ef55b522295e3ebc07a9efff144 /nova/compute | |
| parent | 06372798edf744ba28612e2bda688ba3b5f30bb3 (diff) | |
block_device_mapping: don't use [] as default argument
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index a211bd4bb..3b3bea41b 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -150,12 +150,13 @@ class API(base.Base): availability_zone=None, user_data=None, metadata={}, injected_files=None, admin_password=None, - block_device_mapping=[]): + block_device_mapping=None): """Create the number and type of instances requested. Verifies that quota and other arguments are valid. """ + block_device_mapping = block_device_mapping or [] if not instance_type: instance_type = instance_types.get_default_instance_type() |
