Skip to content

Commit

Permalink
fixed issue with ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
CorwinTanner committed Apr 7, 2016
1 parent 26998d6 commit 35a559f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ def test_find_virtualizers_error(self):
def test_should_skip(self):
self.assertFalse(_should_skip('Test Machine 1'))
self.assertTrue(_should_skip('Test Machine 5'))
self.assertFalse(_should_skip('Machine Not In Config'))
2 changes: 1 addition & 1 deletion vmupdate/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ def _should_skip(name):
:rtype: bool
"""

return config.machines[name].ignore
return name in config.machines and config.machines[name].ignore

0 comments on commit 35a559f

Please sign in to comment.