Merge "Remove redundant usage of ensure_resource"

This commit is contained in:
Zuul 2020-11-07 03:23:21 +00:00 committed by Gerrit Code Review
commit b675c0915d
1 changed files with 15 additions and 16 deletions

View File

@ -329,6 +329,7 @@ as a standalone service, or httpd for being run by a httpd server")
'api/hide_server_address_states': value => $hide_server_address_states;
'api/allow_instance_snapshots': value => $allow_instance_snapshots;
'api/enable_instance_password': value => $enable_instance_password;
'DEFAULT/allow_resize_to_same_host': value => $allow_resize_to_same_host;
}
if ($ratelimits != undef) {
@ -372,6 +373,4 @@ as a standalone service, or httpd for being run by a httpd server")
$validation_options_hash = merge ($defaults, $validation_options)
create_resources('openstacklib::service_validation', $validation_options_hash, {'subscribe' => 'Service[nova-api]'})
}
ensure_resource('nova_config', 'DEFAULT/allow_resize_to_same_host', { value => $allow_resize_to_same_host })
}