Skip to content

Commit

Permalink
Fix the boolean logic error.
Browse files Browse the repository at this point in the history
Should be squashed into the main RackConnect commit.
  • Loading branch information
jkoelker authored and ohthree jenkins committed May 16, 2013
1 parent a5ce280 commit b6ce97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/network/quantum2/aiclib_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_securityprofile_from_template(self, tenant_id,
def get_securityprofile(self, tenant_id=None,
securityprofile_id=None):
errormsg = 'Either tenant_id or securityprofile_id is required'
if tenant_id is None or securityprofile_id is None:
if tenant_id is None and securityprofile_id is None:
raise TypeError(errormsg)

if securityprofile_id is not None:
Expand Down

0 comments on commit b6ce97b

Please sign in to comment.