def is_mounted(self, *args, **kwargs): # Calls mount_status in return boolean mode. try: return mount_status('%s%s' % (settings.MNT_PT, self.name), RETURN_BOOLEAN) except: return False
def is_mounted(self, *args, **kwargs): # Calls mount_status in return boolean mode. try: return mount_status('%s%s' % (settings.MNT_PT, self.name), RETURN_BOOLEAN) except: return False
def mount_status(self, *args, **kwargs): # Presents raw string of active mount options akin to mnt_options field try: return mount_status('%s%s' % (settings.MNT_PT, self.name)) except: return None
def is_mounted(self, *args, **kwargs): # Calls mount_status in return boolean mode. try: return mount_status(self.mnt_pt_var, RETURN_BOOLEAN) except: return False
def mount_status(self, *args, **kwargs): # Presents raw string of active mount options try: return mount_status(self.mnt_pt_var) except: return None
def mount_status(self, *args, **kwargs): # Presents raw string of active mount options akin to mnt_options field try: return mount_status('%s%s' % (settings.MNT_PT, self.name)) except: return None