badbishop
2013-Jan-21 18:30 UTC
[Puppet Users] Custom provider: shell command gets corrupted, how to debug?
Hello, I''m writing my first custom type and provider for Puppet. I''ve run into following trouble. When I define a command binary (using touch here for the sake of example) commands :mycommand => ''touch'' ... and then in create run mycommand ''/tmp/test1'' somehow a new line gets inserted between command and the argument. In debug messages it looks OK, just as if there''s an extra space, by the error looks like first the command got into interactive mode, and then received invalid argument (I have experimented with several commands, like aptitude, for instance). If I copy the resulting command from debugging output, it forks just fine. I''m using puppet 2.7.20 Any similar experiences? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cExDwS1UzHoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.