Skip to content

Commit

Permalink
Fix atomic pylint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde authored and mattclay committed Apr 11, 2017
1 parent 4e8e366 commit db6d818
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
12 changes: 7 additions & 5 deletions lib/ansible/modules/cloud/atomic/atomic_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'supported_by': 'community'}


DOCUMENTATION='''
DOCUMENTATION = '''
---
module: atomic_host
short_description: Manage the atomic host platform
Expand Down Expand Up @@ -63,6 +63,10 @@
sample: 'Already on latest'
'''

# import module snippets
from ansible.module_utils.basic import AnsibleModule, os


def core(module):
revision = module.params['revision']
args = []
Expand Down Expand Up @@ -90,8 +94,8 @@ def core(module):

def main():
module = AnsibleModule(
argument_spec = dict(
revision = dict(default='latest', required=False, aliases=["version"]),
argument_spec=dict(
revision=dict(default='latest', required=False, aliases=["version"]),
),
)

Expand All @@ -105,7 +109,5 @@ def main():
module.fail_json(msg=str(e))


# import module snippets
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()
17 changes: 10 additions & 7 deletions lib/ansible/modules/cloud/atomic/atomic_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'supported_by': 'community'}


DOCUMENTATION='''
DOCUMENTATION = '''
---
module: atomic_image
short_description: Manage the container images on the atomic host platform
Expand Down Expand Up @@ -73,6 +73,11 @@
sample: [u'Using default tag: latest ...']
'''


# import module snippets
from ansible.module_utils.basic import AnsibleModule


def do_upgrade(module, image):
args = ['atomic', 'update', '--force', image]
rc, out, err = module.run_command(args, check_rc=False)
Expand Down Expand Up @@ -120,10 +125,10 @@ def core(module):

def main():
module = AnsibleModule(
argument_spec = dict(
name = dict(default=None, required=True),
state = dict(default='latest', choices=['present', 'absent', 'latest']),
started = dict(default='yes', type='bool'),
argument_spec=dict(
name=dict(default=None, required=True),
state=dict(default='latest', choices=['present', 'absent', 'latest']),
started=dict(default='yes', type='bool'),
),
)

Expand All @@ -138,7 +143,5 @@ def main():
module.fail_json(msg=str(e))


# import module snippets
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

0 comments on commit db6d818

Please sign in to comment.