Custom provider: shell command gets corrupted, how to debug?

24 views
Skip to first unread message

badbishop

unread,
Jan 21, 2013, 1:30:51 PM1/21/13
to puppet...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages