rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
86 stars 45 forks source link

Spaces in the Mapping Params #109

Open TheTomahawk opened 4 years ago

TheTomahawk commented 4 years ago

It took me 45 minutes to work out why this wasn't working: nodename.selector=tags/Name+'-'+instanceId; ssh-key-storage-path.selector='keys/'+keyName

It turns out that instead of the 2nd attribute being called "ssh-key-storage-path" it was called " ssh-key-storage-path" -- the space after the semi-colon was being added to the name of the attribute. So SSH was failing despite it looking like the value was set correctly.

Whilst this is probably a technically correct thing, maybe, I feel it would be better to strip off leading whitespace, and if someone really needs it (???) then have them escape it with a .