lib/beaker/host/cisco.rb in beaker-4.3.0 vs lib/beaker/host/cisco.rb in beaker-4.4.0

- old
+ new

@@ -92,11 +92,11 @@ # @param [Hash] opts optional parameters # # @return [String] Command string as needed for this host def append_commands(command = '', user_ac = '', opts = {}) command.gsub('"') {'\\"'} - # vsh commands and ntpdate commands do not require an appended `"` - return '"' unless command =~ /ntpdate|\/isan\/bin\/vsh/ + # vsh commands, ntpdate or when user is root commands do not require an appended `"` + return '"' unless command =~ /ntpdate|\/isan\/bin\/vsh/ || self[:user] == 'root' end # Construct the environment string for this command # # @param [Hash{String=>String}] env An optional Hash containing