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 22
22
import os
23
23
import re
24
24
import platform
25
- from socket import getfqdn
26
25
from string import Template
27
26
import select
28
27
import subprocess
@@ -1079,7 +1078,7 @@ def run(self, **inputs):
1079
1078
startTime = dt .isoformat (dt .utcnow ()),
1080
1079
endTime = None ,
1081
1080
platform = platform .platform (),
1082
- hostname = getfqdn (),
1081
+ hostname = platform . node (),
1083
1082
version = self .version )
1084
1083
try :
1085
1084
runtime = self ._run_wrapper (runtime )
Original file line number Diff line number Diff line change 11
11
from pickle import dumps
12
12
import os
13
13
import getpass
14
- from socket import getfqdn
14
+ import platform
15
15
from uuid import uuid1
16
16
import simplejson as json
17
17
@@ -133,7 +133,9 @@ def safe_encode(x, as_literal=True):
133
133
if isinstance (x , bytes ):
134
134
x = str (x , 'utf-8' )
135
135
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 )
137
139
if not as_literal :
138
140
return value
139
141
try :
You can’t perform that action at this time.
0 commit comments