Permalink
Browse files

Correct returncode check on facter

  • Loading branch information...
1 parent 9ff5d47 commit 10cbe8494a103669abc14176e8c2095f3dfda962 @dcramer dcramer committed Feb 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 facter.py
View
2 facter.py
@@ -11,7 +11,7 @@ def get_data(self):
proc = Popen(['facter'], stdout=PIPE, stderr=PIPE, shell=True)
output = proc.communicate()[0]
- if proc.returncode == 0:
+ if proc.returncode != 0:
return {}
for line in output.splitlines():

0 comments on commit 10cbe84

Please sign in to comment.