primitives can have more than one op
This commit is contained in:
@@ -69,7 +69,8 @@ module Chef::Libraries
|
||||
# primitive keystone ocf:openstack:keystone \
|
||||
# params os_username="crowbar" os_password="crowbar" os_tenant_name="openstack" \
|
||||
# meta target-role="Started" is-managed="true" \
|
||||
# op monitor interval="10s"
|
||||
# op monitor interval="10" timeout=30s \
|
||||
# op start interval="10s" timeout="240" \
|
||||
#
|
||||
# This method extracts a Hash from one of the params / meta / op lines.
|
||||
def extract_hash(name, obj_definition, data_type)
|
||||
|
@@ -18,7 +18,8 @@ module Chef::RSpec
|
||||
[ "is-managed", "true" ]
|
||||
],
|
||||
:op => [
|
||||
[ "monitor", { "interval" => "10s" } ]
|
||||
[ "monitor", { "timeout" => "60", "interval" => "10s" } ],
|
||||
[ "start", { "timeout" => "240", "interval" => "10s" } ]
|
||||
],
|
||||
}
|
||||
RA[:params_string] = resource_params_string(RA[:params])
|
||||
|
Reference in New Issue
Block a user