mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	change parameters
This commit is contained in:
		
							parent
							
								
									c707aeb5da
								
							
						
					
					
						commit
						97e9a0171a
					
				| @ -271,8 +271,8 @@ def describe_setup_in_basic_mode(): | |||||||
|      |      | ||||||
|     return zs |     return zs | ||||||
| 
 | 
 | ||||||
| def generate_setup_config(func, file=None): | def generate_setup_config(config, file=None): | ||||||
|     describe = func() |     describe = config | ||||||
|     if file is None: |     if file is None: | ||||||
|         return json.dumps(json_repr(describe)) |         return json.dumps(json_repr(describe)) | ||||||
|     else: |     else: | ||||||
| @ -295,5 +295,5 @@ if __name__ == "__main__": | |||||||
|     parser.add_option("-o", "--output", action="store", default="./datacenterCfg", dest="output", help="the path where the json config file generated, by default is ./datacenterCfg") |     parser.add_option("-o", "--output", action="store", default="./datacenterCfg", dest="output", help="the path where the json config file generated, by default is ./datacenterCfg") | ||||||
|      |      | ||||||
|     (options, args) = parser.parse_args() |     (options, args) = parser.parse_args() | ||||||
| 
 |     config = describe_setup_in_basic_mode() | ||||||
|     generate_setup_config(describe_setup_in_basic_mode, options.output) |     generate_setup_config(config, options.output) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user