Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 631946
Collapse All | Expand All

(-)target.py.orig (-2 / +8 lines)
Lines 586-593 Link Here
586
        self._check_self()
586
        self._check_self()
587
587
588
        path = "%s/alua_tg_pt_gp" % self.path
588
        path = "%s/alua_tg_pt_gp" % self.path
589
        group_name = fread(path).splitlines()[0]
589
        try:
590
        return group_name.split(':')[1].strip()
590
            info = fread(path)
591
            if not info:
592
                return None
593
            group_line = info.splitlines()[0]
594
            return group_line.split(':')[1].strip()
595
        except IOError as e:
596
            return None
591
597
592
    def _set_alua_tg_pt_gp_name(self, group_name):
598
    def _set_alua_tg_pt_gp_name(self, group_name):
593
        self._check_self()
599
        self._check_self()

Return to bug 631946