Default Node File Copier -> Script Execution -> Missing variable #725

Closed
thowo opened this Issue Apr 2, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@thowo

thowo commented Apr 2, 2014

Hello,

at least since rundeck 2.0.2 the ${file-copy.file} variable is not getting interpolated whereas ${file-copy.filename} does. In 1.6 both worked for me.
Can one please check that?
Thanks,
Cheers,
Tom

@gschueler

This comment has been minimized.

Show comment
Hide comment
@gschueler

gschueler Apr 2, 2014

Member

hi can you paste the configuration you are using?

Member

gschueler commented Apr 2, 2014

hi can you paste the configuration you are using?

@thowo

This comment has been minimized.

Show comment
Hide comment
@thowo

thowo Apr 2, 2014

Hello,
my settings are as follows:

Command: echo ${file-copy.file} && exit 0;
Remote File Path: ${file-copy.file}
Interpreter: /bin/bash -c
Directory: empty

The config may look a bit strange, but in my use case I just have to tell my exec-script where the dispatch file lives.
If I use ${file-copy.filename} I get the filename of the dispatch[[:digit:]]*.tmp$ File, but my rancid-wrapper script expects the full path to the file.
In 1.6 everything worked, since 2.x it is broken. Currently we are running rundeck 2.0.3 debian package. Any Idea?
Thanks,
Tom

thowo commented Apr 2, 2014

Hello,
my settings are as follows:

Command: echo ${file-copy.file} && exit 0;
Remote File Path: ${file-copy.file}
Interpreter: /bin/bash -c
Directory: empty

The config may look a bit strange, but in my use case I just have to tell my exec-script where the dispatch file lives.
If I use ${file-copy.filename} I get the filename of the dispatch[[:digit:]]*.tmp$ File, but my rancid-wrapper script expects the full path to the file.
In 1.6 everything worked, since 2.x it is broken. Currently we are running rundeck 2.0.3 debian package. Any Idea?
Thanks,
Tom

@gschueler

This comment has been minimized.

Show comment
Hide comment
@gschueler

gschueler Apr 2, 2014

Member

ok it may have broken for the Remote File Path. it should include ${file-copy.file} I would expect

Member

gschueler commented Apr 2, 2014

ok it may have broken for the Remote File Path. it should include ${file-copy.file} I would expect

@gschueler gschueler added the bug label Apr 2, 2014

@thowo

This comment has been minimized.

Show comment
Hide comment
@thowo

thowo Apr 7, 2014

Hi Greg,
sorry being late on this. May we could expect a patch on this?
thanks in advance,
regards,
Tom

thowo commented Apr 7, 2014

Hi Greg,
sorry being late on this. May we could expect a patch on this?
thanks in advance,
regards,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment