mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
udm_user: fix broken import
Tested with: from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta n = datetime.now() assert n + timedelta(days=365) == n + relativedelta(years=1)
This commit is contained in:
parent
c52f355bcb
commit
4ecf85392e
2 changed files with 2 additions and 4 deletions
|
@ -334,8 +334,7 @@ EXAMPLES = '''
|
||||||
RETURN = '''# '''
|
RETURN = '''# '''
|
||||||
|
|
||||||
import crypt
|
import crypt
|
||||||
from datetime import date
|
from datetime import date, timedelta
|
||||||
from dateutil.relativedelta import relativedelta
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible.module_utils.univention_umc import (
|
from ansible.module_utils.univention_umc import (
|
||||||
|
@ -347,7 +346,7 @@ from ansible.module_utils.univention_umc import (
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
expiry = date.strftime(date.today() + relativedelta(years=1), "%Y-%m-%d")
|
expiry = date.strftime(date.today() + timedelta(days=365), "%Y-%m-%d")
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
birthday = dict(default=None,
|
birthday = dict(default=None,
|
||||||
|
|
|
@ -44,7 +44,6 @@ lib/ansible/modules/cloud/google/gc_storage.py
|
||||||
lib/ansible/modules/cloud/google/gcdns_record.py
|
lib/ansible/modules/cloud/google/gcdns_record.py
|
||||||
lib/ansible/modules/cloud/google/gcdns_zone.py
|
lib/ansible/modules/cloud/google/gcdns_zone.py
|
||||||
lib/ansible/modules/cloud/ovirt/ovirt_disks.py
|
lib/ansible/modules/cloud/ovirt/ovirt_disks.py
|
||||||
lib/ansible/modules/cloud/univention/udm_user.py
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_app.py
|
lib/ansible/modules/cloud/webfaction/webfaction_app.py
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_db.py
|
lib/ansible/modules/cloud/webfaction/webfaction_db.py
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_domain.py
|
lib/ansible/modules/cloud/webfaction/webfaction_domain.py
|
||||||
|
|
Loading…
Reference in a new issue