def uninstall_check(options): # test if server is DNSSEC key master masters = opendnssecinstance.get_dnssec_key_masters(api.Backend.ldap2) if api.env.host in masters: print("This server is active DNSSEC key master. Uninstall could break your DNS system.") if not (options.unattended or user_input( "Are you sure you want to continue with the uninstall " "procedure?", False)): print("") print("Aborting uninstall operation.") sys.exit(1)
def uninstall_check(options): # test if server is DNSSEC key master masters = opendnssecinstance.get_dnssec_key_masters(api.Backend.ldap2) if api.env.host in masters: print("This server is active DNSSEC key master. Uninstall could break your DNS system.") if not (options.unattended or user_input( "Are you sure you want to continue with the uninstall " "procedure?", False)): print("") print("Aborting uninstall operation.") sys.exit(1)
def _is_master(): # test if server is DNSSEC key master masters = opendnssecinstance.get_dnssec_key_masters(api.Backend.ldap2) if api.env.host not in masters: raise RuntimeError("Current server is not DNSSEC key master")
def _is_master(): # test if server is DNSSEC key master masters = opendnssecinstance.get_dnssec_key_masters(api.Backend.ldap2) if api.env.host not in masters: raise RuntimeError("Current server is not DNSSEC key master")