Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: Problem in sepolgen Date: Mon, 01 Dec 2008 11:51:19 -0500 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 self.roles does not exist, need to return length of dictionary. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkk0FgYACgkQrlYvE4MpobP5HwCeNgjPTSPoqBQTXa14ZA9Jc0ww yycAoNWJhg78BXm4L5Vg9cNAdNa7ggfD =Uz8t -----END PGP SIGNATURE----- Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
parent
8c51c70d59
commit
b3b3f8186e
|
@ -313,7 +313,7 @@ class RoleTypeSet:
|
|||
|
||||
def __len__(self):
|
||||
"""Return the unique number of role allow statements."""
|
||||
return len(self.roles)
|
||||
return len(self.role_type.keys())
|
||||
|
||||
def add(self, role, type):
|
||||
if self.role_types.has_key(role):
|
||||
|
|
Loading…
Reference in New Issue