Skip to content

Commit

Permalink
Correct the variable name in trusted filter
Browse files Browse the repository at this point in the history
Rename instance to instance_type to avoid misunderstanding

Change-Id: I88f8d31074d7547649c242a023b18143a0092fea
  • Loading branch information
tanlin committed Jun 23, 2014
1 parent fc03bd4 commit 3a0a539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/scheduler/filters/trusted_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ def __init__(self):
self.compute_attestation = ComputeAttestation()

def host_passes(self, host_state, filter_properties):
instance = filter_properties.get('instance_type', {})
extra = instance.get('extra_specs', {})
instance_type = filter_properties.get('instance_type', {})
extra = instance_type.get('extra_specs', {})
trust = extra.get('trust:trusted_host')
host = host_state.host
if trust:
Expand Down

0 comments on commit 3a0a539

Please sign in to comment.