Permalink
Browse files

Fixed issue with test for instrument agent policy

  • Loading branch information...
1 parent 70bd771 commit 6b897bee10433d0046a28a06af3e8c1517ac258b @shenrie shenrie committed Aug 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyon/core/governance/policy/policy_decision.py
@@ -189,12 +189,12 @@ def _create_request_from_message(self, invocation, receiver):
#Iterate over the roles associated with the user and create attributes for each
for org in actor_roles:
attribute = None
- for role in actor_roles[org]:
+ for role in actor_roles[org]: #TODO - Figure out how to handle multiple Org Roles
if attribute is None:
- attribute = self.create_string_attribute(ROLE_ATTRIBUTE_ID, role) #TODO - Figure out how to handle multiple Org Roles
+ attribute = self.create_string_attribute(ROLE_ATTRIBUTE_ID, role)
else:
attribute.attributeValues.append(StringAttributeValue())
- attribute.attributeValues[-1].value = org + "_" + role
+ attribute.attributeValues[-1].value = role
subject.attributes.append(attribute)

0 comments on commit 6b897be

Please sign in to comment.