Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
python-rtslib
rtslib-fix_support_for_disabled_tpgs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rtslib-fix_support_for_disabled_tpgs.patch of Package python-rtslib
Index: rtslib-2.2/rtslib/target.py =================================================================== --- rtslib-2.2.orig/rtslib/target.py +++ rtslib-2.2/rtslib/target.py @@ -1002,11 +1002,12 @@ class TPG(CFSNode): ''' self._check_self() path = "%s/enable" % self.path - if os.path.isfile(path) and (boolean != self._get_enable()): - try: - fwrite(path, str(int(boolean))) - except IOError, e: - raise RTSLibError("Cannot change enable state: %s" % e) + if os.path.isfile(path): + if (boolean != self._get_enable()): + try: + fwrite(path, str(int(boolean))) + except IOError, e: + raise RTSLibError("Cannot change enable state: %s" % e) elif not boolean: raise RTSLibError("TPG cannot be disabled.")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor