Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions seash_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,32 +608,22 @@ def reset_target(longname):




def run_target(longname, filename, filedata, argstring, prog_platform):

vesselname = seash_global_variables.vesselinfo[longname]['vesselname']

try:
nmclient.nmclient_signedsay(seash_global_variables.vesselinfo[longname]['handle'], "AddFileToVessel", vesselname, filename, filedata)
# Backwards compatibility with old nodemanagers that don't support
# StartVesselEX
if prog_platform == "repyV1":
nmclient.nmclient_signedsay(
seash_global_variables.vesselinfo[longname]['handle'],
"StartVessel", vesselname, argstring)
else:
nmclient.nmclient_signedsay(
seash_global_variables.vesselinfo[longname]['handle'],
"StartVesselEx", vesselname, prog_platform, argstring)

except nmclient.NMClientException, e:
(status,str_e) = start_target(longname, argstring, prog_platform)
if status is False:
return(False, str(str_e))

except nmclient.NMClientException,e:
return (False, str(e))

else:
return (True,)



# didn't test...
def split_target(longname, resourcedata):

Expand Down