make cdist localhost work again

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-08 14:17:44 +02:00
parent 979174a568
commit 1d367d5f58

View file

@ -201,7 +201,7 @@ if __name__ == "__main__":
action='store_true') action='store_true')
parser.add_argument('-i', '--initial-manifest', parser.add_argument('-i', '--initial-manifest',
help='path to a cdist manifest or - to read from stdin', help='path to a cdist manifest or - to read from stdin',
dest='manifest', required=True) dest='manifest', required=False)
parser.add_argument('-p', '--parallel', parser.add_argument('-p', '--parallel',
help='operate on multiple hosts in parallel', help='operate on multiple hosts in parallel',
action='store_true', dest='parallel') action='store_true', dest='parallel')
@ -214,11 +214,9 @@ if __name__ == "__main__":
logging.root.setLevel(logging.DEBUG) logging.root.setLevel(logging.DEBUG)
try: try:
print(args) log.debug(args)
import cdist
sys.exit(cdist.main(args))
for host in sys.argv[1:]: for host in args.host:
c = Cdist(host) c = Cdist(host)
c.deploy_to() c.deploy_to()
print(c.list_global_explorers()) print(c.list_global_explorers())