From 819da94ced971b72f524fb6d3add48e2751d2718 Mon Sep 17 00:00:00 2001 From: Les Aker Date: Mon, 28 Jan 2013 00:33:18 -0500 Subject: [PATCH] adjusted assemble to use new file attribute handling --- library/assemble | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/assemble b/library/assemble index 70f429c564..0e0eadc05a 100644 --- a/library/assemble +++ b/library/assemble @@ -91,12 +91,12 @@ def main(): module = AnsibleModule( # not checking because of daisy chain to file module - check_invalid_arguments = False, argument_spec = dict( src = dict(required=True), dest = dict(required=True), backup=dict(default=False, choices=BOOLEANS), - ) + ), + add_file_common_args=True ) changed=False @@ -124,11 +124,11 @@ def main(): shutil.copy(path, dest) changed = True - + file_args = module.load_file_common_arguments(module.params) + changed = module.set_file_attributes_if_different(file_args, changed) # Mission complete module.exit_json(src=src, dest=dest, md5sum=destmd5, - changed=changed, msg="OK", - daisychain="file", daisychain_args=module.params) + changed=changed, msg="OK") # this is magic, see lib/ansible/module_common.py #<>