Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Open
Show file tree
Hide file tree
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
11 changes: 6 additions & 5 deletions vastai/vast.py
Original file line number Diff line number Diff line change
Expand Up @@ -2440,6 +2440,7 @@ def create_instance(id, args):
print("request json: ")
print(json_blob)
r.raise_for_status()

if args.raw:
return r
else:
Expand Down Expand Up @@ -2519,7 +2520,7 @@ def create__instance(args: argparse.Namespace):

:param argparse.Namespace args: Namespace with many fields relevant to the endpoint.
"""
create_instance(args.id, args)
return create_instance(args.id, args)

@parser.command(
argument("ids", help="ids of instance types to launch (returned from search offers)", type=int, nargs='+'),
Expand Down Expand Up @@ -3112,7 +3113,7 @@ def destroy__instance(args):

:param argparse.Namespace args: should supply all the command-line options
"""
destroy_instance(args.id,args)
return destroy_instance(args.id,args)

@parser.command(
argument("ids", help="ids of instance to destroy", type=int, nargs='+'),
Expand Down Expand Up @@ -3923,7 +3924,7 @@ def start__instance(args):
:param argparse.Namespace args: should supply all the command-line options
:rtype:
"""
start_instance(args.id,args)
return start_instance(args.id,args)


@parser.command(
Expand Down Expand Up @@ -3989,7 +3990,7 @@ def stop__instance(args):
:param argparse.Namespace args: should supply all the command-line options
:rtype:
"""
stop_instance(args.id,args)
return stop_instance(args.id,args)

@parser.command(
argument("ids", help="ids of instance to stop", type=int, nargs='+'),
Expand Down Expand Up @@ -7195,7 +7196,7 @@ def cleanup__machine(args):
:param argparse.Namespace args: should supply all the command-line options
:rtype:
"""
cleanup_machine(args, args.id)
return cleanup_machine(args, args.id)


@parser.command(
Expand Down
Loading