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

fix: support -a, --alt_fingerprint parameter #170

Merged
merged 1 commit into from
Apr 26, 2021
Merged
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
6 changes: 3 additions & 3 deletions src/plotman/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def is_plotting_cmdline(cmdline):

# This is a cmdline argument fix for https://github.com/ericaltendorf/plotman/issues/41
def cmdline_argfix(cmdline):
known_keys = 'krbut2dne'
known_keys = 'krbut2dnea'
for i in cmdline:
# If the argument starts with dash and a known key and is longer than 2,
# then an argument is passed with no space between its key and value.
Expand Down Expand Up @@ -97,7 +97,7 @@ def get_running_jobs(logroot, cached_jobs=()):

return jobs


def __init__(self, proc, logroot):
'''Initialize from an existing psutil.Process object. must know logroot in order to understand open files'''
self.proc = proc
Expand Down Expand Up @@ -132,7 +132,7 @@ def __init__(self, proc, logroot):
self.n = val
elif arg in {'-h', '--help'}:
self.help = True
elif arg in {'-e', '--nobitfield', '-f', '--farmer_public_key', '-p', '--pool_public_key'}:
elif arg in {'-e', '--nobitfield', '-f', '--farmer_public_key', '-p', '--pool_public_key', '-a', '--alt_fingerprint'}:
pass
# TODO: keep track of these
elif arg == '--override-k':
Expand Down