Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New module: Add Icinga2 downtime module to allow users to schedule and remove downtime (monitoring/icinga2_downtime) #24131

Closed
wants to merge 19 commits into from

Conversation

Shaita-KrZ
Copy link

SUMMARY

new module allowing users to schedule and remove downtime for icinga (able to work with regex)

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

icinga2_downtime.py

ANSIBLE VERSION
ansible 2.4.0

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. labels Apr 28, 2017
@ansibot
Copy link
Contributor

ansibot commented Apr 28, 2017

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/monitoring/icinga2_downtime.py
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/monitoring/icinga2_downtime.py
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/monitoring/icinga2_downtime.py
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
[ERROR]: unable to parse /root/src/github.com/ansible/ansible/lib/ansible/modu
les/monitoring/icinga2_downtime.py
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): Parsing produced an empty object.

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:18:7: E271 multiple spaces after keyword
lib/ansible/modules/monitoring/icinga2_downtime.py:18:13: E401 multiple imports on one line
lib/ansible/modules/monitoring/icinga2_downtime.py:161:161: E501 line too long (196 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:214:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:216:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:223:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:226:21: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:227:29: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:227:41: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:228:26: E203 whitespace before ':'
lib/ansible/modules/monitoring/icinga2_downtime.py:233:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:235:55: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:242:22: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:247:16: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:267:1: W293 blank line contains whitespace
lib/ansible/modules/monitoring/icinga2_downtime.py:273:1: E303 too many blank lines (3)
lib/ansible/modules/monitoring/icinga2_downtime.py:273:26: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:281:29: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:281:40: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:297:148: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:297:157: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:297:161: E501 line too long (205 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:300:161: E501 line too long (180 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:300:179: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:303:161: E501 line too long (220 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:303:163: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:303:178: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:303:187: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:303:219: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:322:40: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:322:49: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:328:55: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:328:70: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:328:79: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:328:122: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:331:65: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:337:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:347:5: E266 too many leading '#' for block comment
lib/ansible/modules/monitoring/icinga2_downtime.py:366:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:370:20: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:22: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:23: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:55: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:372:25: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:27: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:29: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:31: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:375:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:375:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:376:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:376:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:377:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:377:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:378:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:378:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:378:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:378:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:379:13: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:379:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:379:35: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:379:46: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:380:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:380:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:380:36: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:380:47: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:381:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:381:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:381:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:381:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:382:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:382:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:382:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:382:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:383:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:383:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:383:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:383:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:384:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:384:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:384:37: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:384:48: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:385:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:385:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:386:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:386:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:399:10: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:408:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:413:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:418:98: E703 statement ends with a semicolon
lib/ansible/modules/monitoring/icinga2_downtime.py:420:33: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:420:44: E231 missing whitespace after ','

The test ansible-test sanity --test pylint failed with the following error:

lib/ansible/modules/monitoring/icinga2_downtime.py:260:12: bad-except-order Bad except clauses order (ValueError is an ancestor class of InvalidSchema)

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E101 Interpreter line is not "#!/usr/bin/python"
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E106 Import found before documentation variables. All imports must appear below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 18
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 18
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 426
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E302 DOCUMENTATION is not valid YAML. Line 90 column 45
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E312 No RETURN documentation provided
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E314 No ANSIBLE_METADATA provided

click here for bot help

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Apr 28, 2017
@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Apr 28, 2017
@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label May 1, 2017
@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:136:161: E501 line too long (196 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:183:7: E271 multiple spaces after keyword
lib/ansible/modules/monitoring/icinga2_downtime.py:183:13: E401 multiple imports on one line
lib/ansible/modules/monitoring/icinga2_downtime.py:202:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:204:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:211:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:214:21: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:215:29: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:215:41: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:216:26: E203 whitespace before ':'
lib/ansible/modules/monitoring/icinga2_downtime.py:221:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:223:55: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:230:22: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:235:16: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:261:1: E303 too many blank lines (3)
lib/ansible/modules/monitoring/icinga2_downtime.py:261:26: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:269:29: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:269:40: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:285:148: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:285:157: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:285:161: E501 line too long (205 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:288:161: E501 line too long (180 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:288:179: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:291:161: E501 line too long (220 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:291:163: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:291:178: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:291:187: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:291:219: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:310:40: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:310:49: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:316:55: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:316:70: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:316:79: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:316:122: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:319:65: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:325:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:335:5: E266 too many leading '#' for block comment
lib/ansible/modules/monitoring/icinga2_downtime.py:354:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:358:20: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:358:22: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:359:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:359:23: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:359:55: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:360:25: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:360:27: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:361:29: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:361:31: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:366:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:367:13: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:35: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:367:46: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:368:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:36: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:368:47: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:369:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:369:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:370:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:370:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:371:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:371:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:372:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:37: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:372:48: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:373:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:387:10: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:396:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:401:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:406:98: E703 statement ends with a semicolon
lib/ansible/modules/monitoring/icinga2_downtime.py:408:33: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:408:44: E231 missing whitespace after ','

The test ansible-test sanity --test pylint failed with the following error:

lib/ansible/modules/monitoring/icinga2_downtime.py:248:12: bad-except-order Bad except clauses order (ValueError is an ancestor class of InvalidSchema)

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 414
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 414
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label May 2, 2017
@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:136:161: E501 line too long (196 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:183:7: E271 multiple spaces after keyword
lib/ansible/modules/monitoring/icinga2_downtime.py:183:13: E401 multiple imports on one line
lib/ansible/modules/monitoring/icinga2_downtime.py:202:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:204:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:211:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:214:21: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:215:29: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:215:41: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:216:26: E203 whitespace before ':'
lib/ansible/modules/monitoring/icinga2_downtime.py:221:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:223:55: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:230:22: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:235:16: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:260:1: E303 too many blank lines (3)
lib/ansible/modules/monitoring/icinga2_downtime.py:260:26: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:268:29: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:268:40: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:284:148: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:284:157: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:284:161: E501 line too long (205 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:287:161: E501 line too long (180 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:287:179: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:290:161: E501 line too long (220 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:290:163: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:290:178: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:290:187: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:290:219: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:309:40: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:309:49: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:315:55: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:315:70: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:315:79: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:315:122: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:318:65: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:324:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:334:5: E266 too many leading '#' for block comment
lib/ansible/modules/monitoring/icinga2_downtime.py:353:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/monitoring/icinga2_downtime.py:357:20: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:357:22: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:358:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:358:23: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:358:55: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:359:25: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:359:27: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:360:29: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:360:31: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:361:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:361:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:365:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:366:13: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:35: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:366:46: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:367:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:36: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:367:47: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:368:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:368:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:369:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:38: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:369:49: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:370:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:39: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:370:50: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:371:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:37: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:371:48: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:372:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:386:10: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:395:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:400:75: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:405:98: E703 statement ends with a semicolon
lib/ansible/modules/monitoring/icinga2_downtime.py:407:33: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:407:44: E231 missing whitespace after ','

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 413
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 413
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:136:161: E501 line too long (196 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:183:7: E271 multiple spaces after keyword
lib/ansible/modules/monitoring/icinga2_downtime.py:183:13: E401 multiple imports on one line
lib/ansible/modules/monitoring/icinga2_downtime.py:202:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:204:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:215:21: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:216:29: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:216:41: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:217:26: E203 whitespace before ':'
lib/ansible/modules/monitoring/icinga2_downtime.py:225:55: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:232:22: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:237:16: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:261:26: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:270:1: E303 too many blank lines (3)
lib/ansible/modules/monitoring/icinga2_downtime.py:270:29: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:270:40: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:286:148: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:286:157: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:286:161: E501 line too long (205 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:289:161: E501 line too long (180 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:289:179: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:292:161: E501 line too long (220 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:292:163: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:292:178: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:292:187: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:292:219: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:311:40: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:311:49: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:317:55: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:317:70: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:317:79: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:317:122: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:320:65: E202 whitespace before '}'
lib/ansible/modules/monitoring/icinga2_downtime.py:337:5: E266 too many leading '#' for block comment
lib/ansible/modules/monitoring/icinga2_downtime.py:361:20: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:361:22: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:362:23: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:25: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:363:27: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:29: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:364:31: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:365:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:366:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:367:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:368:21: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:369:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:13: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:370:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:371:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:372:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:373:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:374:19: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:375:15: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:375:17: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:376:16: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:376:18: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:377:14: E251 unexpected spaces around keyword / parameter equals
lib/ansible/modules/monitoring/icinga2_downtime.py:377:16: E251 unexpected spaces around keyword / parameter equals

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 417
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 417
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:136:161: E501 line too long (196 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:183:7: E271 multiple spaces after keyword
lib/ansible/modules/monitoring/icinga2_downtime.py:183:13: E401 multiple imports on one line
lib/ansible/modules/monitoring/icinga2_downtime.py:202:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:204:28: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:215:21: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:216:29: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:216:41: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:217:26: E203 whitespace before ':'
lib/ansible/modules/monitoring/icinga2_downtime.py:225:55: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:232:22: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:237:16: E225 missing whitespace around operator
lib/ansible/modules/monitoring/icinga2_downtime.py:261:26: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:270:1: E303 too many blank lines (3)
lib/ansible/modules/monitoring/icinga2_downtime.py:270:29: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:270:40: E231 missing whitespace after ','
lib/ansible/modules/monitoring/icinga2_downtime.py:286:148: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:286:157: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:286:161: E501 line too long (205 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:289:161: E501 line too long (179 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:292:161: E501 line too long (219 > 160 characters)
lib/ansible/modules/monitoring/icinga2_downtime.py:292:163: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:292:178: E226 missing whitespace around arithmetic operator
lib/ansible/modules/monitoring/icinga2_downtime.py:292:187: E226 missing whitespace around arithmetic operator

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E107 Imports should be directly below DOCUMENTATION/EXAMPLES/RETURN/ANSIBLE_METADATA. line 417
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 417
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:296:13: E128 continuation line under-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:300:13: E128 continuation line under-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:304:13: E128 continuation line under-indented for visual indent

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 192
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:296:21: E127 continuation line over-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:300:21: E127 continuation line over-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:304:21: E127 continuation line over-indented for visual indent

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 192
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 2, 2017

The test ansible-test sanity --test ansible-doc --python 2.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 failed with the following error:

Command "ansible-doc icinga2_downtime" returned exit status 1.
>>> Standard Error
ERROR! module icinga2_downtime missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test pep8 failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:296:25: E127 continuation line over-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:300:25: E127 continuation line over-indented for visual indent
lib/ansible/modules/monitoring/icinga2_downtime.py:304:25: E127 continuation line over-indented for visual indent

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E203 requests import found, should use ansible.module_utils.urls instead
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E208 module_utils imports should import specific components, not "*". line 192
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.end_time.description.0: expected str @ data['options']['end_time']['description'][0]. Got {'Correspond to the time you want to end your downtime. The format of the datetime is': 'YYYY-mm-dd HH:MM:SS.'}
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.icinga2_port.requred: extra keys not allowed @ data['options']['icinga2_port']['requred']. Got False
lib/ansible/modules/monitoring/icinga2_downtime.py:0:0: E305 DOCUMENTATION.options.start_time.description.1: expected str @ data['options']['start_time']['description'][1]. Got {'The format of the datetime is': 'YYYY-mm-dd HH:MM:SS'}

click here for bot help

- A module to manage downtime for icinga2 using Icinga2 API.
- This module is able to schedule or remove downtime for hosts or/and services (can be used with regex).
requirements:
- requests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Shaita-KrZ you should remove requests from the requirements

@Shaita-KrZ
Copy link
Author

@sivel ?

@alikins alikins changed the title new module allowing users to schedule and remove downtime for icinga New module: Add Icinga2 downtime module to allow users to schedule and remove downtime (monitoring/icinga2_downtime) May 22, 2017
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label May 22, 2017
@ansibot ansibot added support:community This issue/PR relates to code supported by the Ansible community. stale_review Updates were made after the last review and the last review is more than 7 days old. labels Jun 29, 2017
@thmshmm
Copy link

thmshmm commented Jul 24, 2017

Hi @Shaita-KrZ, nice module.

I have two changes you might want to add to your code. At line 432 there exists a problem on Python 2.6 where deltatime has no method total_seconds. You can fix it with these lines:

delta_time = datetime.timedelta(seconds=end_time_duration)
total_seconds = (delta_time.days * 24 * 3600) + delta_time.seconds + (delta_time.microseconds / 10**6)
end_time = start_time + total_seconds

And at line 283 you should check if the key "name" exists.

if message[0].has_key('name'):
    result['name'] = message[0]['name']

@ansibot ansibot added the new_contributor This PR is the first contribution by a new community member. label Oct 18, 2017
@ansibot ansibot removed the new_contributor This PR is the first contribution by a new community member. label Nov 3, 2017
@ansibot ansibot added the new_contributor This PR is the first contribution by a new community member. label Jan 22, 2018
@yasa1987
Copy link

Is still something happening there ? This module would be useful for me...

@Lowess
Copy link
Contributor

Lowess commented Jul 13, 2018

@yasa1987 @sivel Let me get in touch with @Shaita-KrZ who is in my team to make sure those changes you requested get updated so that we can hopefully have this merged soon !

Thanks !

@ansibot ansibot added the monitoring Monitoring category label Feb 17, 2019
@ansibot ansibot removed the stale_review Updates were made after the last review and the last review is more than 7 days old. label Jun 26, 2019
@ansibot ansibot added the stale_review Updates were made after the last review and the last review is more than 7 days old. label Jul 4, 2019
@ansibot
Copy link
Contributor

ansibot commented Mar 4, 2020

@!UNKNOWN @Akint @ApsOps @D3DeFi @K-dot @NickatEpic @RedWhiteMiko @Sedward @abulimov @akomic @andsens @bhcopeland @brian-brazil @bwhaley @dj-wasabi @dmsimard @dstoflet @eikef @emriver @harrisongu @hkariti @kavu @logan2211 @martinwangjian @mcodd @n0ts @nate-kingsley @nerzhul @orgito @rrey @rubentsirunyan @seuf @skornehl @sky-joker @smbambling @sookido @stravassac @stympy @suprememoocow @t794104 @tbielawa

As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add shipit if you would like to see it merged.

click here for bot help

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_review Updates were made after the last review and the last review is more than 7 days old. labels Mar 4, 2020
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_review Updates were made after the last review and the last review is more than 7 days old. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Mar 28, 2020
@ansibot ansibot added collection Related to Ansible Collections work collection:community.general needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md labels Apr 29, 2020
@ansibot
Copy link
Contributor

ansibot commented Aug 17, 2020

Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.

For further information, please see:
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md

@ansibot ansibot closed this Aug 17, 2020
@ansible ansible locked and limited conversation to collaborators Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bot_closed collection:community.general collection Related to Ansible Collections work module This issue/PR relates to a module. monitoring Monitoring category needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_contributor This PR is the first contribution by a new community member. new_module This PR includes a new module. new_plugin This PR includes a new plugin. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_review Updates were made after the last review and the last review is more than 7 days old. support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants