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

aix_chsec module #49057

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
3 participants
@flynn1973

flynn1973 commented Nov 23, 2018

SUMMARY

adds stanzas to aix config files using the chsec command.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

aix_chsec

ADDITIONAL INFORMATION

example plays:

  • name: add ldap user stanza
    aix_chsec:
    path: /etc/security/user
    stanza: ldapuser
    options: SYSTEM=LDAP,registry=LDAP
    state: present
    mode: 0644

  • name: change login times for user
    aix_chsec:
    path: /etc/security/user
    stanza: ldapuser
    options: logintimes=:0800-1700
    state: present

  • name: remove registry option from stanza
    aix_chsec:
    path: /etc/security/user
    stanza: ldapuser
    options: SYSTEM=LDAP,registry=
    state: present

@ansibot

This comment has been minimized.

Contributor

ansibot commented Nov 23, 2018

Hi @flynn1973, thank you for submitting this pull-request!

click here for bot help

@ansibot

This comment has been minimized.

Contributor

ansibot commented Nov 23, 2018

The test ansible-test sanity --test pylint [explain] failed with 110 errors:

lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import AVAILABLE_HASH_ALGORITHMS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import AnsibleFallbackNotFound from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS_FALSE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS_TRUE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import DEFAULT_PERM from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import EXEC_PERM_BITS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import FILE_ATTRIBUTES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import FILE_COMMON_ARGUMENTS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import HAS_SYSLOG from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import HAVE_SELINUX from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import KeysView from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MODE_OPERATOR_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Mapping from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableMapping from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableSequence from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableSet from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import NUMBERTYPES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import NoneType from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASSWD_ARG_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASSWORD_MATCH from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASS_BOOLS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASS_VARS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PERMS_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PERM_BITS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PY2 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PY3 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import SEQUENCETYPE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import SIZE_RANGES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Sequence from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Set from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import USERS_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import algorithm from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import algorithms from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import atexit from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import attribute from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import b from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import basestring from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import binary_type from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import boolean from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import bytes_to_human from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import chain from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import datetime from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import deque from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import env_fallback from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import errno from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import format_attributes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_all_subclasses from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_bin_path from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_distribution from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_distribution_version from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_exception from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_flags_from_attributes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_module_path from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_platform from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import grp from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import has_journal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import hashlib from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import heuristic_log_sanitize from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import human_to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import imap from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import integer_types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import is_executable from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import iteritems from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import journal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json_dict_bytes_to_unicode from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json_dict_unicode_to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import jsonify from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import literal_eval from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import load_platform_subclass from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import locale from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import map from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import md5 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import missing_required_lib from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import os from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import platform from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import pwd from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import re from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import reduce from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import remove_values from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import repeat from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import return_values from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import select from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import selinux from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import sha from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shlex from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shlex_quote from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shutil from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import signal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import stat from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import string_types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import subprocess from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import sys from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import syslog from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import tempfile from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import text_type from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import time from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_native from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_text from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import traceback from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import unicode from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: wildcard-import Wildcard import ansible.module_utils.basic
lib/ansible/modules/system/aix_chsec.py:100:15: bad-whitespace Exactly one space required around assignment             msg='stanza added'                ^
lib/ansible/modules/system/aix_chsec.py:101:19: bad-whitespace Exactly one space required around assignment             changed=True                    ^
lib/ansible/modules/system/aix_chsec.py:103:61: trailing-whitespace Trailing whitespace
lib/ansible/modules/system/aix_chsec.py:109:16: bad-whitespace Exactly one space required around assignment              msg='stanza removed'                 ^
lib/ansible/modules/system/aix_chsec.py:110:20: bad-whitespace Exactly one space required around assignment              changed=True                     ^

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/usr/bin/python test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ 	]*//g; s/[ 	]*$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$/d' | sed -e :a -e '$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css
PYTHONPATH=../../lib ../bin/dump_config.py --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/ -d ../../lib/ansible/config/base.yml
mkdir -p rst/cli
PYTHONPATH=../../lib ../bin/generate_man.py --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../bin/dump_keywords.py --template-dir=../templates --output-dir=rst/reference_appendices/ -d ./keyword_desc.yml
PYTHONPATH=../../lib ../bin/plugin_formatter.py -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../bin/plugin_formatter.py", line 720, in <module>
    main()
  File "../bin/plugin_formatter.py", line 678, in main
    plugin_info, categories = get_plugin_info(options.module_dir, limit_to=options.limit_to, verbose=(options.verbosity > 0))
  File "../bin/plugin_formatter.py", line 269, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 96, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 59, in read_docstring
    data[varkey] = AnsibleLoader(child.value.s, file_name=filename).get_single_data()
  File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 110, in compose_sequence_node
    while not self.check_event(SequenceEndEvent):
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 393, in parse_block_sequence_entry
    "expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block collection
  in "<unicode string>", line 10, column 5:
        - "adds stanzas to aix config fi ... 
        ^
expected <block end>, but found '<scalar>'
  in "<unicode string>", line 10, column 71:
     ... s using the chsec command. see "man chsec" for additional infos"
                                         ^
make: *** [modules] Error 1

The test ansible-test sanity --test pep8 [explain] failed with 13 errors:

lib/ansible/modules/system/aix_chsec.py:69:43: W291 trailing whitespace
lib/ansible/modules/system/aix_chsec.py:82:1: E303 too many blank lines (3)
lib/ansible/modules/system/aix_chsec.py:100:16: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:101:20: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:103:62: W291 trailing whitespace
lib/ansible/modules/system/aix_chsec.py:104:25: E226 missing whitespace around arithmetic operator
lib/ansible/modules/system/aix_chsec.py:107:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:109:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:109:17: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:110:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:110:21: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:135:5: E303 too many blank lines (2)
lib/ansible/modules/system/aix_chsec.py:144:1: E305 expected 2 blank lines after class or function definition, found 1

The test ansible-test sanity --test validate-modules [explain] failed with 6 errors:

lib/ansible/modules/system/aix_chsec.py:0:0: E105 GPLv3 license header not found in the first 20 lines of the module
lib/ansible/modules/system/aix_chsec.py:0:0: E312 No RETURN provided
lib/ansible/modules/system/aix_chsec.py:0:0: E324 Value for "default" from the argument_spec ('present') for "state" does not match the documentation (None)
lib/ansible/modules/system/aix_chsec.py:0:0: E326 Value for "choices" from the argument_spec (['absent', 'present']) for "state" does not match the documentation ([])
lib/ansible/modules/system/aix_chsec.py:23:71: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/system/aix_chsec.py:78:0: E208 module_utils imports should import specific components, not "*"

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:23:71: error DOCUMENTATION: syntax error: expected <block end>, but found '<scalar>'

click here for bot help

@ansibot

This comment has been minimized.

Contributor

ansibot commented Nov 23, 2018

The test ansible-test sanity --test pylint [explain] failed with 110 errors:

lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import AVAILABLE_HASH_ALGORITHMS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import AnsibleFallbackNotFound from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS_FALSE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import BOOLEANS_TRUE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import DEFAULT_PERM from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import EXEC_PERM_BITS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import FILE_ATTRIBUTES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import FILE_COMMON_ARGUMENTS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import HAS_SYSLOG from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import HAVE_SELINUX from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import KeysView from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MODE_OPERATOR_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Mapping from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableMapping from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableSequence from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import MutableSet from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import NUMBERTYPES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import NoneType from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASSWD_ARG_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASSWORD_MATCH from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASS_BOOLS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PASS_VARS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PERMS_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PERM_BITS from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PY2 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import PY3 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import SEQUENCETYPE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import SIZE_RANGES from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Sequence from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import Set from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import USERS_RE from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import algorithm from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import algorithms from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import atexit from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import attribute from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import b from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import basestring from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import binary_type from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import boolean from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import bytes_to_human from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import chain from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import datetime from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import deque from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import env_fallback from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import errno from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import format_attributes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_all_subclasses from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_bin_path from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_distribution from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_distribution_version from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_exception from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_flags_from_attributes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_module_path from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import get_platform from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import grp from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import has_journal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import hashlib from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import heuristic_log_sanitize from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import human_to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import imap from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import integer_types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import is_executable from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import iteritems from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import journal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json_dict_bytes_to_unicode from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import json_dict_unicode_to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import jsonify from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import literal_eval from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import load_platform_subclass from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import locale from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import map from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import md5 from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import missing_required_lib from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import os from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import platform from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import pwd from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import re from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import reduce from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import remove_values from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import repeat from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import return_values from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import select from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import selinux from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import sha from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shlex from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shlex_quote from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import shutil from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import signal from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import stat from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import string_types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import subprocess from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import sys from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import syslog from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import tempfile from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import text_type from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import time from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_bytes from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_native from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import to_text from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import traceback from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import types from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: unused-wildcard-import Unused import unicode from wildcard import
lib/ansible/modules/system/aix_chsec.py:78:0: wildcard-import Wildcard import ansible.module_utils.basic
lib/ansible/modules/system/aix_chsec.py:100:15: bad-whitespace Exactly one space required around assignment             msg='stanza added'                ^
lib/ansible/modules/system/aix_chsec.py:101:19: bad-whitespace Exactly one space required around assignment             changed=True                    ^
lib/ansible/modules/system/aix_chsec.py:103:61: trailing-whitespace Trailing whitespace
lib/ansible/modules/system/aix_chsec.py:109:16: bad-whitespace Exactly one space required around assignment              msg='stanza removed'                 ^
lib/ansible/modules/system/aix_chsec.py:110:20: bad-whitespace Exactly one space required around assignment              changed=True                     ^

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/usr/bin/python test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ 	]*//g; s/[ 	]*$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$/d' | sed -e :a -e '$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css
PYTHONPATH=../../lib ../bin/dump_config.py --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/ -d ../../lib/ansible/config/base.yml
mkdir -p rst/cli
PYTHONPATH=../../lib ../bin/generate_man.py --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../bin/dump_keywords.py --template-dir=../templates --output-dir=rst/reference_appendices/ -d ./keyword_desc.yml
PYTHONPATH=../../lib ../bin/plugin_formatter.py -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../bin/plugin_formatter.py", line 720, in <module>
    main()
  File "../bin/plugin_formatter.py", line 678, in main
    plugin_info, categories = get_plugin_info(options.module_dir, limit_to=options.limit_to, verbose=(options.verbosity > 0))
  File "../bin/plugin_formatter.py", line 269, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 96, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 59, in read_docstring
    data[varkey] = AnsibleLoader(child.value.s, file_name=filename).get_single_data()
  File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 110, in compose_sequence_node
    while not self.check_event(SequenceEndEvent):
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 393, in parse_block_sequence_entry
    "expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block collection
  in "<unicode string>", line 10, column 5:
        - "adds stanzas to aix config fi ... 
        ^
expected <block end>, but found '<scalar>'
  in "<unicode string>", line 10, column 71:
     ... s using the chsec command. see "man chsec" for additional infos"
                                         ^
make: *** [modules] Error 1

The test ansible-test sanity --test pep8 [explain] failed with 13 errors:

lib/ansible/modules/system/aix_chsec.py:69:43: W291 trailing whitespace
lib/ansible/modules/system/aix_chsec.py:82:1: E303 too many blank lines (3)
lib/ansible/modules/system/aix_chsec.py:100:16: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:101:20: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:103:62: W291 trailing whitespace
lib/ansible/modules/system/aix_chsec.py:104:25: E226 missing whitespace around arithmetic operator
lib/ansible/modules/system/aix_chsec.py:107:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:109:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:109:17: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:110:14: E111 indentation is not a multiple of four
lib/ansible/modules/system/aix_chsec.py:110:21: E225 missing whitespace around operator
lib/ansible/modules/system/aix_chsec.py:135:5: E303 too many blank lines (2)
lib/ansible/modules/system/aix_chsec.py:144:1: E305 expected 2 blank lines after class or function definition, found 1

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/system/aix_chsec.py:23:71: error DOCUMENTATION: syntax error: expected <block end>, but found '<scalar>'

The test ansible-test sanity --test validate-modules [explain] failed with 6 errors:

lib/ansible/modules/system/aix_chsec.py:0:0: E105 GPLv3 license header not found in the first 20 lines of the module
lib/ansible/modules/system/aix_chsec.py:0:0: E312 No RETURN provided
lib/ansible/modules/system/aix_chsec.py:0:0: E324 Value for "default" from the argument_spec ('present') for "state" does not match the documentation (None)
lib/ansible/modules/system/aix_chsec.py:0:0: E326 Value for "choices" from the argument_spec (['absent', 'present']) for "state" does not match the documentation ([])
lib/ansible/modules/system/aix_chsec.py:23:71: E302 DOCUMENTATION is not valid YAML
lib/ansible/modules/system/aix_chsec.py:78:0: E208 module_utils imports should import specific components, not "*"

click here for bot help

@ansibot ansibot added the stale_ci label Dec 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment