From 772e241d1fe82c263776e788e942f2bbf8eccfdd Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 24 Jul 2012 19:44:53 -0400 Subject: [PATCH] shorten up the assemble module --- library/assemble | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/library/assemble b/library/assemble index 8d108896143..58c4ba239b2 100755 --- a/library/assemble +++ b/library/assemble @@ -17,24 +17,12 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -try: - import json -except ImportError: - import simplejson as json import os import os.path import sys -import shlex import shutil -import syslog import tempfile -try: - from hashlib import md5 as _md5 -except ImportError: - from md5 import md5 as _md5 - - # =========================================== # Support methods @@ -71,11 +59,6 @@ def main(): src = os.path.expanduser(module.params['src']) dest = os.path.expanduser(module.params['dest']) - if src: - src = os.path.expanduser(src) - if dest: - dest = os.path.expanduser(dest) - if not os.path.exists(src): fail_json(msg="Source (%s) does not exist" % src)