@@ -31,6 +31,7 @@ def main(argv=sys.argv[1:]):
31
31
exgroup .add_argument ("--get" , type = str , default = None )
32
32
exgroup .add_argument ("--log" , type = str , default = None )
33
33
exgroup .add_argument ("--list" , action = "store_true" , default = False )
34
+ exgroup .add_argument ("--info" , action = "store_true" , default = False )
34
35
exgroup .add_argument ("--version" , action = "store_true" , default = False )
35
36
36
37
exgroup = parser .add_mutually_exclusive_group ()
@@ -75,6 +76,11 @@ def main(argv=sys.argv[1:]):
75
76
json .dump (response .result (), sys .stdout , indent = 4 )
76
77
return 0
77
78
79
+ if args .info :
80
+ response = client .WorkflowExecutionService .GetServiceInfo ()
81
+ json .dump (response .result (), sys .stdout , indent = 4 )
82
+ return 0
83
+
78
84
loader = schema_salad .ref_resolver .Loader ({
79
85
"location" : {"@type" : "@id" }
80
86
})
@@ -83,11 +89,18 @@ def main(argv=sys.argv[1:]):
83
89
basedir = os .path .dirname (args .job_order )
84
90
85
91
def fixpaths (d ):
86
- if isinstance (d , dict ) and "path" in d :
87
- local_path = os .path .normpath (
88
- os .path .join (os .getcwd (), basedir , d ["path" ]))
89
- del d ["path" ]
90
- d ["location" ] = urllib .pathname2url (local_path )
92
+ if isinstance (d , dict ):
93
+ if "path" in d :
94
+ local_path = os .path .normpath (
95
+ os .path .join (os .getcwd (), basedir , d ["path" ]))
96
+ del d ["path" ]
97
+ d ["location" ] = urllib .pathname2url (local_path )
98
+ if d .get ("class" ) == "Directory" :
99
+ loc = d .get ("location" , "" )
100
+ if loc .startswith ("http:" ) or loc .startswith ("https:" ):
101
+ logging .error ("Directory inputs not supported with http references" )
102
+ exit (33 )
103
+
91
104
visit (input , fixpaths )
92
105
93
106
workflow_url = args .workflow_url
0 commit comments