Use get_secret instead of secret
The new get_secret method allows the 'secrets' databag to be renamed, just like all other databags. Change-Id: Ic8be5d19a112d78e22716c0cd571efc7186ac9ce Related-Bug: #1288784
This commit is contained in:
parent
48db4ab1fc
commit
646a833740
|
@ -26,7 +26,7 @@ end
|
|||
|
||||
identity_admin_endpoint = endpoint 'identity-admin'
|
||||
|
||||
token = secret 'secrets', 'openstack_identity_bootstrap_token'
|
||||
token = get_secret 'openstack_identity_bootstrap_token'
|
||||
auth_url = ::URI.decode identity_admin_endpoint.to_s
|
||||
|
||||
heat_endpoint = endpoint 'orchestration-api'
|
||||
|
|
|
@ -25,8 +25,8 @@ def orchestration_stubs # rubocop:disable MethodLength
|
|||
::Chef::Recipe.any_instance.stub(:address_for)
|
||||
.with('lo')
|
||||
.and_return '127.0.1.1'
|
||||
::Chef::Recipe.any_instance.stub(:secret)
|
||||
.with('secrets', 'openstack_identity_bootstrap_token')
|
||||
::Chef::Recipe.any_instance.stub(:get_secret)
|
||||
.with('openstack_identity_bootstrap_token')
|
||||
.and_return 'bootstrap-token'
|
||||
|
||||
::Chef::Recipe.any_instance.stub(:get_password)
|
||||
|
|
Loading…
Reference in New Issue