diff options
| -rw-r--r-- | nova/compute/node.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/compute/node.py b/nova/compute/node.py index 9d95f7e00..3de93d96c 100644 --- a/nova/compute/node.py +++ b/nova/compute/node.py @@ -475,8 +475,9 @@ class Instance(object): yield _fetch_file(data['kernel_id'], basepath('kernel')) if not os.path.exists(basepath('ramdisk')): yield _fetch_file(data['ramdisk_id'], basepath('ramdisk')) - - execute = lambda x: self._pool.simpleExecute(x, error_ok=1) + + execute = lambda cmd, input=None: self._pool.simpleExecute(cmd=cmd, input=input, error_ok=1) + if data['key_data']: logging.info('Injecting key data into image %s', data['image_id']) yield disk.inject_key( |
