forked from ungleich-public/cdist
		
	fixup -c option
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								8f34f8659b
							
						
					
				
			
			
				commit
				
					
						c5355ca104
					
				
			
		
					 1 changed files with 2 additions and 7 deletions
				
			
		| 
						 | 
					@ -599,7 +599,7 @@ if __name__ == "__main__":
 | 
				
			||||||
       action='store_true', dest='banner')
 | 
					       action='store_true', dest='banner')
 | 
				
			||||||
   parser.add_argument('-c', '--cdist-home',
 | 
					   parser.add_argument('-c', '--cdist-home',
 | 
				
			||||||
       help='Change cdist home (default: .. from bin directory)',
 | 
					       help='Change cdist home (default: .. from bin directory)',
 | 
				
			||||||
       action='store_true', dest='cdist_home')
 | 
					       action='store')
 | 
				
			||||||
   parser.add_argument('-d', '--debug', help='Set log level to debug',
 | 
					   parser.add_argument('-d', '--debug', help='Set log level to debug',
 | 
				
			||||||
       action='store_true')
 | 
					       action='store_true')
 | 
				
			||||||
   parser.add_argument('-i', '--initial-manifest', 
 | 
					   parser.add_argument('-i', '--initial-manifest', 
 | 
				
			||||||
| 
						 | 
					@ -614,22 +614,17 @@ if __name__ == "__main__":
 | 
				
			||||||
   
 | 
					   
 | 
				
			||||||
   parser.add_argument('-V', '--version', help='Show version',
 | 
					   parser.add_argument('-V', '--version', help='Show version',
 | 
				
			||||||
       action='version', version='%(prog)s ' + VERSION)
 | 
					       action='version', version='%(prog)s ' + VERSION)
 | 
				
			||||||
   arser.add_argument('--foo', nargs=2)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
   args = parser.parse_args(sys.argv[1:])
 | 
					   args = parser.parse_args(sys.argv[1:])
 | 
				
			||||||
 | 
					   log.debug(args)
 | 
				
			||||||
   if args.debug:
 | 
					   if args.debug:
 | 
				
			||||||
       logging.root.setLevel(logging.DEBUG)
 | 
					       logging.root.setLevel(logging.DEBUG)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   print(args)
 | 
					 | 
				
			||||||
   sys.exit(1)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   if args.banner:
 | 
					   if args.banner:
 | 
				
			||||||
      banner()
 | 
					      banner()
 | 
				
			||||||
      sys.exit(0)
 | 
					      sys.exit(0)
 | 
				
			||||||
   
 | 
					   
 | 
				
			||||||
   try:
 | 
					   try:
 | 
				
			||||||
      log.debug(args)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      for host in args.host:
 | 
					      for host in args.host:
 | 
				
			||||||
         c = Cdist(host, initial_manifest=args.manifest, home=args.cdist_home)
 | 
					         c = Cdist(host, initial_manifest=args.manifest, home=args.cdist_home)
 | 
				
			||||||
         c.deploy_to()
 | 
					         c.deploy_to()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue