summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-11-07 23:04:27 +0000
committerCarl Hetherington <cth@carlh.net>2014-11-07 23:04:27 +0000
commit3aeeda31a811db7a3839c5898ade7f8649f3dae9 (patch)
treecbd533b55cd9803ed505c98c5d357f4ee3ac3562
parent7ae5975718eb57d333b50684325f612b00209d1f (diff)
Tweak for host:path outputs.
-rwxr-xr-xcdist5
1 files changed, 4 insertions, 1 deletions
diff --git a/cdist b/cdist
index 7aafdf0..700b7c1 100755
--- a/cdist
+++ b/cdist
@@ -601,7 +601,10 @@ def main():
parser.add_argument('-w', '--work', help='override default work directory')
args = parser.parse_args()
- args.output = os.path.abspath(args.output)
+ if args.output.find(':') == -1:
+ # This isn't of the form host:path so make it absolute
+ args.output = os.path.abspath(args.output)
+
if args.work is not None:
args.work = os.path.abspath(args.work)