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:
Luis A. Garcia 2014-04-02 08:32:21 -07:00
parent 48db4ab1fc
commit 646a833740
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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)