fixed logentries

reviewable/pr18780/r1
Brian Coca 10 years ago
parent 045a0b86cb
commit 312d59061c

@ -78,7 +78,7 @@ def follow_log(module, le_path, logs, name=None, logtype=None):
if name: if name:
cmd.extend(['--name',name]) cmd.extend(['--name',name])
if logtype: if logtype:
cmd.append(['--type',logtype]) cmd.extend(['--type',logtype])
rc, out, err = module.run_command(' '.join(cmd)) rc, out, err = module.run_command(' '.join(cmd))
if not query_log_status(module, le_path, log): if not query_log_status(module, le_path, log):
@ -122,7 +122,7 @@ def main():
path = dict(required=True), path = dict(required=True),
state = dict(default="present", choices=["present", "followed", "absent", "unfollowed"]), state = dict(default="present", choices=["present", "followed", "absent", "unfollowed"]),
name = dict(required=False, default=None, type='str'), name = dict(required=False, default=None, type='str'),
logtype = dict(required=False, default=None, type='str', aliases['type']) logtype = dict(required=False, default=None, type='str', aliases=['type'])
), ),
supports_check_mode=True supports_check_mode=True
) )

Loading…
Cancel
Save