Error check on get_instructions to ignore .json at the end.

This commit is contained in:
Anton Hvornum 2019-12-26 14:08:20 +00:00
parent 40939d207e
commit 91da324df0
1 changed files with 1 additions and 0 deletions

View File

@ -720,6 +720,7 @@ def get_local_instructions(target):
def get_instructions(target, *positionals, **kwargs):
instructions = oDict()
if target[0-len('.json'):] == '.json': target = target[:0-len('.json')]
log(f'Fetching instructions for {target}', level=4, origin='get_instructions')
if get_default_gateway_linux():
try: