wernerbahlke
2013-May-17 13:28 UTC
[Puppet Users] Windows Pathnames with spaces in Puppet file directive
I have to change a file in c:\Program Files <x86>\MSBuild\Microsoft.Cpp\v4.0. I have tried various ways to encapsule the Windows path with spaces but to no avail. The following file { "\"c:\\program files <x86>\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppCommon.targets\"": ensure => present, source => ''puppet:///modules/install_programs/Microsoft.CppCommon.targets'', } causes this error: info: Caching catalog for w7entbase.metratech.com err: Failed to apply catalog: Parameter path failed: File paths must be fully qualified, not ''"c:\program files <x86>\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets"'' at /etc/puppetlabs/puppet/modules/test/manifests/init.pp:17 Any suggestions will be greatly appreciated. Werner -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
David Schmitt
2013-May-17 14:25 UTC
Re: [Puppet Users] Windows Pathnames with spaces in Puppet file directive
Hi, On 17.05.2013 15:28, wernerbahlke wrote:> I have to change a file in c:\Program Files > <x86>\MSBuild\Microsoft.Cpp\v4.0. I have tried various ways to encapsule > the Windows path with spaces but to no avail. > > The following > > file { "\"c:\\program files > <x86>\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppCommon.targets\"":> err: Failed to apply catalog: Parameter path failed: File paths must be > fully qualified, not ''"c:\program files > <x86>\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets"'' at > /etc/puppetlabs/puppet/modules/test/manifests/init.pp:17 > > Any suggestions will be greatly appreciated.You do not need to put the extra double quotes inside the string.> "c:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppCommon.targets"should be completely sufficient. also not that you have posted angle brackets around "x86", but usually the directory has normal brackets, like I show here. For more in-depth discussion of filenames under windows in puppet, please see the docs at> http://docs.puppetlabs.com/windows/writing.html#file-paths-on-windowsRegards, David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- opus_multistream_encode_float not working in libopus 1.1
- opus_multistream_encode_float not working in libopus 1.1
- opus_multistream_encode_float not working in libopus 1.1
- opus_multistream_encode_float not working in libopus 1.1
- can't build/run after adding lib to Fibonacci example, even reverting the complete llvm tree does not help