Fix avalaible/available typo
Change-Id: I19a38f6bd26a6a47b5772799c8024872e6d7bbff
This commit is contained in:
parent
b29ee6f706
commit
340186e2ed
@ -124,7 +124,7 @@ correctly configured.")
|
|||||||
list = auth_neutron("#{type}-list", '--format=csv',
|
list = auth_neutron("#{type}-list", '--format=csv',
|
||||||
'--column=id', '--quote=none')
|
'--column=id', '--quote=none')
|
||||||
if list.nil?
|
if list.nil?
|
||||||
raise(Puppet::ExecutionFailure, "Can't retrieve #{type}-list because Neutron or Keystone API is not avalaible.")
|
raise(Puppet::ExecutionFailure, "Can't retrieve #{type}-list because Neutron or Keystone API is not available.")
|
||||||
end
|
end
|
||||||
|
|
||||||
(list.split("\n")[1..-1] || []).compact.collect do |line|
|
(list.split("\n")[1..-1] || []).compact.collect do |line|
|
||||||
@ -137,7 +137,7 @@ correctly configured.")
|
|||||||
attrs = {}
|
attrs = {}
|
||||||
net = auth_neutron("#{type}-show", '--format=shell', id)
|
net = auth_neutron("#{type}-show", '--format=shell', id)
|
||||||
if net.nil?
|
if net.nil?
|
||||||
raise(Puppet::ExecutionFailure, "Can't retrieve #{type}-show because Neutron or Keystone API is not avalaible.")
|
raise(Puppet::ExecutionFailure, "Can't retrieve #{type}-show because Neutron or Keystone API is not available.")
|
||||||
end
|
end
|
||||||
|
|
||||||
last_key = nil
|
last_key = nil
|
||||||
|
@ -29,7 +29,7 @@ describe Puppet::Provider::Neutron do
|
|||||||
end
|
end
|
||||||
|
|
||||||
let :exec_error do
|
let :exec_error do
|
||||||
/Neutron or Keystone API is not avalaible/
|
/Neutron or Keystone API is not available/
|
||||||
end
|
end
|
||||||
|
|
||||||
after :each do
|
after :each do
|
||||||
|
Loading…
Reference in New Issue
Block a user