Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct returncode check on facter

  • Loading branch information...
commit 10cbe8494a103669abc14176e8c2095f3dfda962 1 parent 9ff5d47
@dcramer dcramer authored
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.
Something went wrong with that request. Please try again.