mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Fix typo in error message
This commit is contained in:
parent
878c93f646
commit
d57fc72fdb
2 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ module Vmpooler
|
||||||
target_datacenter_name = get_target_datacenter_from_config(pool_name)
|
target_datacenter_name = get_target_datacenter_from_config(pool_name)
|
||||||
|
|
||||||
# Extract the template VM name from the full path
|
# Extract the template VM name from the full path
|
||||||
raise("Pool #{pool_name} did specify a full path for the template for the provider #{name}") unless template_path =~ /\//
|
raise("Pool #{pool_name} did not specify a full path for the template for the provider #{name}") unless template_path =~ /\//
|
||||||
templatefolders = template_path.split('/')
|
templatefolders = template_path.split('/')
|
||||||
template_name = templatefolders.pop
|
template_name = templatefolders.pop
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ EOT
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should raise an error' do
|
it 'should raise an error' do
|
||||||
expect{ subject.create_vm(poolname, vmname) }.to raise_error(/did specify a full path for the template/)
|
expect{ subject.create_vm(poolname, vmname) }.to raise_error(/did not specify a full path for the template/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue