File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2222import os
2323import re
2424import platform
25- from socket import getfqdn
2625from string import Template
2726import select
2827import subprocess
@@ -1079,7 +1078,7 @@ def run(self, **inputs):
10791078 startTime = dt .isoformat (dt .utcnow ()),
10801079 endTime = None ,
10811080 platform = platform .platform (),
1082- hostname = getfqdn (),
1081+ hostname = platform . node (),
10831082 version = self .version )
10841083 try :
10851084 runtime = self ._run_wrapper (runtime )
Original file line number Diff line number Diff line change 1111from pickle import dumps
1212import os
1313import getpass
14- from socket import getfqdn
14+ import platform
1515from uuid import uuid1
1616import simplejson as json
1717
@@ -133,7 +133,9 @@ def safe_encode(x, as_literal=True):
133133 if isinstance (x , bytes ):
134134 x = str (x , 'utf-8' )
135135 if os .path .exists (x ):
136- value = 'file://{}{}' .format (getfqdn (), x )
136+ if x [0 ] != os .pathsep :
137+ x = os .path .abspath (x )
138+ value = 'file://{}{}' .format (platform .node ().lower (), x )
137139 if not as_literal :
138140 return value
139141 try :
You can’t perform that action at this time.
0 commit comments