diff --git a/lib/vmpooler/providers/vsphere.rb b/lib/vmpooler/providers/vsphere.rb index 8a81253..cfd087c 100644 --- a/lib/vmpooler/providers/vsphere.rb +++ b/lib/vmpooler/providers/vsphere.rb @@ -198,7 +198,7 @@ module Vmpooler target_datacenter_name = get_target_datacenter_from_config(pool_name) # 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('/') template_name = templatefolders.pop diff --git a/spec/unit/providers/vsphere_spec.rb b/spec/unit/providers/vsphere_spec.rb index b3ef04b..39c891e 100644 --- a/spec/unit/providers/vsphere_spec.rb +++ b/spec/unit/providers/vsphere_spec.rb @@ -301,7 +301,7 @@ EOT end 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