Bug fixed
This commit is contained in:
		
							
								
								
									
										2
									
								
								pvcd.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pvcd.py
									
									
									
									
									
								
							| @@ -50,7 +50,7 @@ atexit.register(cleanup) | |||||||
|  |  | ||||||
| # Check if our node exists in Zookeeper, and create it if not | # Check if our node exists in Zookeeper, and create it if not | ||||||
| mynodestring = '/nodes/%s' % myhostname | mynodestring = '/nodes/%s' % myhostname | ||||||
| if zk.exists('%s' + mynodestring): | if zk.exists('%s' % mynodestring): | ||||||
|     print("Node is present in Zookeeper") |     print("Node is present in Zookeeper") | ||||||
| else: | else: | ||||||
|     zk.create('%s' % mynodestring, 'hypervisor'.encode('ascii')) |     zk.create('%s' % mynodestring, 'hypervisor'.encode('ascii')) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user