Revision 632ea467 snf-deploy/snfdeploy/__init__.py

b/snf-deploy/snfdeploy/__init__.py
581 581
        do_create_ddns_keys(args, env)
582 582
        return 0
583 583
    else:
584
        if ((args.key_inject and not args.ssh_key and must_create_keys(env)) or
585
            must_create_ddns_keys(env)):
584
        if ((args.key_inject and not args.ssh_key and
585
             must_create_keys(env)) or must_create_ddns_keys(env)):
586 586
            print "No ssh/ddns keys to use. Run `snf-deploy keygen' first."
587 587
            return 1
588 588
        env.ddns_keys = find_ddns_key_files(env)

Also available in: Unified diff