The attrs are present but set to ''. Signed-off-by: Andy Grover <agrover@xxxxxxxxxx> --- rtslib/target.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rtslib/target.py b/rtslib/target.py index f6e3d27..dcc5ca3 100644 --- a/rtslib/target.py +++ b/rtslib/target.py @@ -228,7 +228,7 @@ class FabricModule(CFSNode): This fabric requires wwn to be specified when creating a target, it cannot be autogenerated. ''' - return 'wwn_from_files' in self.spec or 'wwn_from_cmds' in self.spec + return bool(self.spec['wwn_from_files']) or bool(self.spec['wwn_from_cmds']) def _assert_feature(self, feature): if not self.has_feature(feature): -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html