Selaa lähdekoodia

HPCC-25677 No longer need str.decode in python3. str type already stored as utf-8

Signed-off-by: Michael Gardner <michael.gardner@lexisnexisrisk.com>
Michael Gardner 4 vuotta sitten
vanhempi
commit
bdb008088f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      initfiles/sbin/hpcc/cluster/task.py

+ 1 - 1
initfiles/sbin/hpcc/cluster/task.py

@@ -129,7 +129,7 @@ class ScriptTask(Task):
         option. Also user should ensure the script permission to
         protect the script from malicious modification.
         '''
-        cmd = self.script_file + " " + host.ip.decode('utf-8')
+        cmd = self.script_file + " " + host.ip
         self.logger.info(cmd)
         if not self.validateScriptFile():
             self.logger.error("Script file check sum does not match")