diff --git a/nova/flags.py b/nova/flags.py index 7253ad553..61f2288cf 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -362,7 +362,7 @@ DEFINE_string('null_kernel', 'nokernel', 'kernel image that indicates not to use a kernel,' ' but to use a raw disk image instead') -DEFINE_integer('vpn_image_id', 0, 'integer id for cloudpipe vpn server') +DEFINE_string('vpn_image_id', '0', 'image id for cloudpipe vpn server') DEFINE_string('vpn_key_suffix', '-vpn', 'Suffix to add to project name for vpn key and secgroups') diff --git a/nova/tests/scheduler/test_scheduler.py b/nova/tests/scheduler/test_scheduler.py index 6f708691b..df1ccce61 100644 --- a/nova/tests/scheduler/test_scheduler.py +++ b/nova/tests/scheduler/test_scheduler.py @@ -61,7 +61,7 @@ def _create_instance_dict(**kwargs): inst = {} # NOTE(jk0): If an integer is passed as the image_ref, the image # service will use the default image service (in this case, the fake). - inst['image_ref'] = '1' + inst['image_ref'] = 'cedef40a-ed67-4d10-800e-17455edce175' inst['reservation_id'] = 'r-fakeres' inst['user_id'] = kwargs.get('user_id', 'admin') inst['project_id'] = kwargs.get('project_id', 'fake')