1
0
Fork 0
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:
Pierre-Louis Bonicoli 2017-07-14 15:41:03 +02:00 committed by Toshio Kuratomi
parent c52f355bcb
commit 4ecf85392e
2 changed files with 2 additions and 4 deletions

View file

@ -334,8 +334,7 @@ EXAMPLES = '''
RETURN = '''# '''
import crypt
from datetime import date
from dateutil.relativedelta import relativedelta
from datetime import date, timedelta
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.univention_umc import (
@ -347,7 +346,7 @@ from ansible.module_utils.univention_umc import (
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(
argument_spec = dict(
birthday = dict(default=None,

View file

@ -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_zone.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_db.py
lib/ansible/modules/cloud/webfaction/webfaction_domain.py