Dont fail on curtin check if in dryrun

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
This commit is contained in:
Adam Stokes 2015-10-26 10:19:48 -04:00
parent e442350213
commit 390bbdae02
1 changed files with 4 additions and 2 deletions

View File

@ -48,6 +48,7 @@ def parse_options(argv):
def control_c_handler(signum, frame): def control_c_handler(signum, frame):
sys.exit(1) sys.exit(1)
def main(): def main():
opts = parse_options(sys.argv[1:]) opts = parse_options(sys.argv[1:])
setup_logger() setup_logger()
@ -58,8 +59,9 @@ def main():
signal.signal(signal.SIGINT, control_c_handler) signal.signal(signal.SIGINT, control_c_handler)
env_ok = environment_check() env_ok = environment_check()
if env_ok is False: if env_ok is False and not opts.dry_run:
print('Failed environment check. Check {} for errors.'.format(LOGFILE)) print('Failed environment check. '
'Check {} for errors.'.format(LOGFILE))
return 1 return 1
ui = SubiquityUI() ui = SubiquityUI()