Browse Source

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 năm trước cách đây
mục cha
commit
bdb008088f

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

@@ -129,7 +129,7 @@ class ScriptTask(Task):
         option. Also user should ensure the script permission to
         option. Also user should ensure the script permission to
         protect the script from malicious modification.
         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)
         self.logger.info(cmd)
         if not self.validateScriptFile():
         if not self.validateScriptFile():
             self.logger.error("Script file check sum does not match")
             self.logger.error("Script file check sum does not match")