Imported Debian patch 4.8.10-2

This commit is contained in:
Timo Aaltonen
2020-11-23 20:48:56 +02:00
committed by Mario Fetka
parent 8bc559c5a1
commit 358acdd85f
917 changed files with 1185414 additions and 1069733 deletions

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Auto Membership Rule.
Bring clarity to the membership of hosts and users by configuring inclusive

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Groups of users
Manage groups of users. By default, new groups are POSIX groups. You

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Simulate use of Host-based access controls
HBAC rules control who can access what services on what hosts.

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Cross-realm trusts
Manage trust relationship between IPA and Active Directory domains.

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Auto Membership Rule.
Bring clarity to the membership of hosts and users by configuring inclusive

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Groups of users
Manage groups of users. By default, new groups are POSIX groups. You

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Simulate use of Host-based access controls
HBAC rules control who can access what services on what hosts.

View File

@@ -16,7 +16,7 @@ from ipapython.dnsutil import DNSName
if six.PY3:
unicode = str
__doc__ = _("""
__doc__ = _(r"""
Cross-realm trusts
Manage trust relationship between IPA and Active Directory domains.

View File

@@ -2,6 +2,8 @@
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import unicode_literals
import importlib
import os
import re
@@ -42,19 +44,19 @@ def get_package(server_info, client):
if not is_valid:
if not client.isconnected():
client.connect(verbose=False)
env = client.forward(u'env', u'api_version', version=u'2.0')
env = client.forward('env', 'api_version', version='2.0')
try:
server_version = env['result']['api_version']
except KeyError:
ping = client.forward(u'ping', version=u'2.0')
ping = client.forward('ping', version='2.0')
try:
match = re.search(u'API version (2\.[0-9]+)', ping['summary'])
match = re.search(r'API version (2\.[0-9]+)', ping['summary'])
except KeyError:
match = None
if match is not None:
server_version = match.group(1)
else:
server_version = u'2.0'
server_version = '2.0'
server_info['version'] = server_version
server_info.update_validity()

View File

@@ -95,7 +95,7 @@ class _SchemaObject(Object):
pass
class _SchemaPlugin(object):
class _SchemaPlugin:
bases = None
schema_key = None
@@ -352,7 +352,7 @@ class NotAvailable(Exception):
pass
class Schema(object):
class Schema:
"""
Store and provide schema for commands and topics