From 1d367d5f581e246793e44016ec1df0836b822e6e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Sep 2011 14:17:44 +0200 Subject: [PATCH] make cdist localhost work again Signed-off-by: Nico Schottelius --- bin/cdist | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/cdist b/bin/cdist index a9b400ca..58ddcb3f 100755 --- a/bin/cdist +++ b/bin/cdist @@ -201,7 +201,7 @@ if __name__ == "__main__": action='store_true') parser.add_argument('-i', '--initial-manifest', help='path to a cdist manifest or - to read from stdin', - dest='manifest', required=True) + dest='manifest', required=False) parser.add_argument('-p', '--parallel', help='operate on multiple hosts in parallel', action='store_true', dest='parallel') @@ -214,11 +214,9 @@ if __name__ == "__main__": logging.root.setLevel(logging.DEBUG) try: - print(args) - import cdist - sys.exit(cdist.main(args)) + log.debug(args) - for host in sys.argv[1:]: + for host in args.host: c = Cdist(host) c.deploy_to() print(c.list_global_explorers())