Esempio n. 1
0
 def logout_master(base_image):
     """
     :type base_image: BlockDeviceBaseImage
     """
     if base_image.is_login:
         volt.logout(base_image.image_name, peer_id=base_image.peer_id)
         base_image.is_login = False
         LOG.debug("Virtman: logout master session = %s, peer_id = %s" %
                   (base_image.image_name, base_image.peer_id))
Esempio n. 2
0
 def _logout_master(self):
     if self.is_login:
         volt.logout(self.image_name, peer_id=self.peer_id)
         self.is_login = False
         LOG.debug("Virtman: logout master session = %s, peer_id = %s" %
                   (self.image_name, self.peer_id))