Syntax error on conditional assignment
This commit is contained in:
parent
f61ffee65a
commit
89a1a89a06
|
|
@ -450,7 +450,7 @@ def get_instructions(target):
|
|||
except urllib.error.HTTPError:
|
||||
print('[N] No instructions found called: {}'.format(target))
|
||||
print('[N] Trying local instructions under ./deployments')
|
||||
local_path = './deployments' if isfile('./archinstall.py') else './archinstall/deployments': # Dangerous assumption
|
||||
local_path = './deployments' if isfile('./archinstall.py') else './archinstall/deployments' # Dangerous assumption
|
||||
if isfile(f'{local_path}/deployments/{target}.json'):
|
||||
with open(f'{local_path}/deployments/{target}.json', 'r') as fh:
|
||||
instructions = fh.read()
|
||||
|
|
|
|||
Loading…
Reference in New Issue