Commit c3321206 authored by Yann Bordenave's avatar Yann Bordenave Committed by Antoine Millet
Browse files

cc-addaccount: remove the god option

parent 65bc7118
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -40,8 +40,6 @@ if __name__ == '__main__':
                  help='account directory')
    op.add_option('-p', '--password', action='store_true',
                  help='ask for the password')
    op.add_option('-g', '--god', action='store_true', default=False,
                  help='add a rule to allow all actions')
    op.add_option('-c', '--copy', default=None,
                  help='copy this already existing account')
    op.add_option('-r', '--role', default=None, choices=('cli', 'hv', 'host'),
@@ -79,9 +77,6 @@ if __name__ == '__main__':
    else:
        conf.copy_account(options.copy, args[0], password)

    if options.god:
        conf.add_right(args[0], '', '*', 'allow', 0)

    # Chown the files:
    uid = getpwnam(CHOWN_USER).pw_uid
    gid = getgrnam(CHOWN_GROUP).gr_gid