def execute(self, opts):
    token = _exit_on_file_read_failure(os.path.join(opts.config_path, 'localtoken')).rstrip()
    rest = ClusterManager(('http://127.0.0.1:' + opts.port), '@localtoken', token)
    check_cluster_initialized(rest)
    check_versions(rest)
    if (not opts.force):
        confirm = str(input('Are you sure that the cipher should be reset?: Y/[N]'))
        if (confirm != 'Y'):
            _success('Cipher suites have not been reset to default')
    (_, errors) = rest.reset_cipher_suites()
    _exit_if_errors(errors)
    _success('Cipher suites have been reset to the default')
def execute(self, opts):
    token = _exit_on_file_read_failure(os.path.join(opts.config_path, 'localtoken')).rstrip()
    rest = ClusterManager(('http://127.0.0.1:' + opts.port), '@localtoken', token)
    check_cluster_initialized(rest)
    check_versions(rest)
    if (not opts.force):
        confirm = str(input('Are you sure that the cipher should be reset?: Y/[N]'))
        if (confirm != 'Y'):
            _success('Cipher suites have not been reset to default')
    (_, errors) = rest.reset_cipher_suites()
    _exit_if_errors(errors)
    _success('Cipher suites have been reset to the default')