Remove redundant usage of ensure_resource

... and gather all parameter definitions into the single nova_config
resource definition.

Change-Id: If65a77dda5a779840ff316aa898f98b73c3aa313
This commit is contained in:
Takashi Kajinami 2020-10-26 21:41:20 +09:00
parent 671f9e4dbf
commit f04e00505f
1 changed files with 15 additions and 16 deletions

View File

@ -328,6 +328,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) {
@ -371,6 +372,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 })
}