Browse Source

added control to prevent VM start in LCM2, display usage if no argument

Nicolo' Palazzini 5 years ago
parent
commit
746dfffd09
1 changed files with 3 additions and 0 deletions
  1. 3 0
      labcalcoloctl

+ 3 - 0
labcalcoloctl

@@ -105,6 +105,9 @@ class Host(Thread):
 			if self.running:
 				stopcmd = main_path + " 0"
 				self.sshcommand(stopcmd)
+				print 'VM stopped on ' + self.hostname
+			else:
+				print 'VM is not running on ' + self.hostname
 		else:
 			print self.hostname + ' is not up.'