mirror of
				https://github.com/ComputerScienceHouse/proxstar.git
				synced 2025-03-09 15:40:09 +00:00 
			
		
		
		
	fix template provisioning by verifying VM is provisioned before doing anything else
This commit is contained in:
		
							parent
							
								
									84f9a00735
								
							
						
					
					
						commit
						1acb84016d
					
				
					 5 changed files with 49 additions and 28 deletions
				
			
		|  | @ -16,12 +16,11 @@ app.config.from_pyfile(config) | |||
| def start_websockify(websockify_path, target_file): | ||||
|     result = subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE) | ||||
|     if not result.stdout: | ||||
|         subprocess.call( | ||||
|             [ | ||||
|                 websockify_path, '8081', '--token-plugin', 'TokenFile', | ||||
|                 '--token-source', target_file, '-D' | ||||
|             ], | ||||
|             stdout=subprocess.PIPE) | ||||
|         subprocess.call([ | ||||
|             websockify_path, '8081', '--token-plugin', 'TokenFile', | ||||
|             '--token-source', target_file, '-D' | ||||
|         ], | ||||
|                         stdout=subprocess.PIPE) | ||||
| 
 | ||||
| 
 | ||||
| def on_starting(server): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue