(self, container_name)
return ""
From a container name obtain its container_id
From a container name obtain its container_id
From a container name obtain its container_id
def get_container_id(self, container_name):
        """From a container name obtain its container_id"""
        if container_name:
            pathname = self.containersdir + "/" + container_name
            if os.path.islink(pathname):
                return os.path.basename(os.readlink(pathname))
            if os.path.isdir(pathname):
                return container_name

        return ""
def get_container_id ( self , container_name ) : if container_name : pathname = self . containersdir + "/" + container_name if os . path . islink ( pathname ) : return os . path . basename ( os . readlink ( pathname ) ) if os . path . isdir ( pathname ) : return container_name return ""