#!/usr/bin/python
import os
-import fnmatch
import subprocess
-import amara
-import re
-import tempfile
import errno
-import time
-import argparse
-import shutil
-import pygraphviz as pgv
-import glob
-import gettext
-import shutil
-from amara import bindery
-from amara.xslt import transform
-from Cheetah.Template import Template
def mkdir_p(path):
try:
def ssh_cmd(target, command):
t = target.split(":")
c = command.split()
- cmd = ["ssh",t[0],c[0],c[1],t[1]]
+ if len(t)==1:
+ cmd = [c[0],c[1],t[0]]
+ else:
+ cmd = ["ssh",t[0],c[0],c[1],t[1]]
retcode = subprocess.call(cmd)
if retcode:
print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'