Fix syntax error

This commit is contained in:
Devin Christensen 2014-11-25 10:44:04 -07:00
parent 10ebcccedb
commit 4a3d7473fd

View file

@ -402,7 +402,7 @@ def parse_role_attrs(role_attr_flags):
flag_set = frozenset(r.upper() for r in role_attr_flags.split(",")) flag_set = frozenset(r.upper() for r in role_attr_flags.split(","))
else: else:
flag_set = frozenset(role_attr_flags.upper()) flag_set = frozenset(role_attr_flags.upper())
if not flag_set.is_subset(VALID_FLAGS): if not flag_set.issubset(VALID_FLAGS):
raise InvalidFlagsError('Invalid role_attr_flags specified: %s' % raise InvalidFlagsError('Invalid role_attr_flags specified: %s' %
' '.join(flag_set.difference(VALID_FLAGS))) ' '.join(flag_set.difference(VALID_FLAGS)))
o_flags = ' '.join(flag_set) o_flags = ' '.join(flag_set)