Fix ec2 credential provider.
The syntax for request was wrong. Change-Id: Ic9964d5f145abb8ef37121ae94aea1084e4e2aa4
This commit is contained in:
parent
5d81f40301
commit
eb62b1e18f
@ -35,8 +35,10 @@ Puppet::Type.type(:tempest_ec2_credentials).provide(
|
||||
def get_ec2_credentials
|
||||
if resource[:ensure] == :present or resource[:ensure].nil?
|
||||
if @ec2_credentials.nil?
|
||||
@ec2_credentials = self.class.request('ec2', 'credentials', 'create',
|
||||
"--user #{resource[:user]}", "--project #{resource[:project]}")
|
||||
@ec2_credentials = self.class.request('ec2 credentials', 'create',
|
||||
["--user #{resource[:user]}",
|
||||
"--project #{resource[:project]}"],
|
||||
file_path)
|
||||
end
|
||||
elsif resource[:ensure] != :absent
|
||||
raise(Puppet::Error, "Cannot ensure to #{resource[:ensure]}")
|
||||
|
Loading…
Reference in New Issue
Block a user