From 70a9c27884a1b6767f73e288a168d161b62c0ca6 Mon Sep 17 00:00:00 2001 From: NonaSuomy Date: Sun, 26 Feb 2017 22:27:54 -0500 Subject: [PATCH] Update shell_command_agent.rb (#1911) Change to make path accept stored credentials. --- app/models/agents/shell_command_agent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/agents/shell_command_agent.rb b/app/models/agents/shell_command_agent.rb index 88161410..fb055e5b 100644 --- a/app/models/agents/shell_command_agent.rb +++ b/app/models/agents/shell_command_agent.rb @@ -68,7 +68,7 @@ module Agents errors.add(:base, "command must be a shell command line string or an array of command line arguments.") end - unless File.directory?(options['path']) + unless File.directory?(interpolated['path']) errors.add(:base, "#{options['path']} is not a real directory.") end end