Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality to run things on the remote server #72

Merged
merged 5 commits into from
May 26, 2022
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions planutils/__init__.py
Original file line number Diff line number Diff line change
@@ -85,9 +85,9 @@ def main():
parser_run.add_argument('package', help='package name')
parser_run.add_argument('options', help='commandline options for the package', nargs="*")

parser_run = subparsers.add_parser('remote', help='run package remotely')
parser_run.add_argument('package', help='package name')
parser_run.add_argument('options', help='commandline options for the package', nargs="*")
parser_remote = subparsers.add_parser('remote', help='run package remotely')
parser_remote.add_argument('package', help='package name')
parser_remote.add_argument('options', help='commandline options for the package', nargs="*")

parser_checkinstalled = subparsers.add_parser('check-installed', help='check if a package is installed')
parser_checkinstalled.add_argument('package', help='package name')
2 changes: 1 addition & 1 deletion planutils/package_installation.py
Original file line number Diff line number Diff line change
@@ -220,7 +220,7 @@ def remote(target, options):

args = {arg['name']: arg for arg in remote_package['endpoint']['services']['solve']['args']}

if len(options) != len(args)-1:
if len(options) != len(args):
sys.exit(f"Call string does not match the remote call: {remote_package['endpoint']['services']['solve']['call']}")

call_map = {}