Commit 772e241d by Michael DeHaan

shorten up the assemble module

parent f787cda7
...@@ -17,24 +17,12 @@ ...@@ -17,24 +17,12 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>. # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
try:
import json
except ImportError:
import simplejson as json
import os import os
import os.path import os.path
import sys import sys
import shlex
import shutil import shutil
import syslog
import tempfile import tempfile
try:
from hashlib import md5 as _md5
except ImportError:
from md5 import md5 as _md5
# =========================================== # ===========================================
# Support methods # Support methods
...@@ -71,11 +59,6 @@ def main(): ...@@ -71,11 +59,6 @@ def main():
src = os.path.expanduser(module.params['src']) src = os.path.expanduser(module.params['src'])
dest = os.path.expanduser(module.params['dest']) 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): if not os.path.exists(src):
fail_json(msg="Source (%s) does not exist" % src) fail_json(msg="Source (%s) does not exist" % src)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment