php-hotfix/examples/python-facts.fix

11 lines
341 B
Plaintext

hotfix: This hotfix show how to use facts in python
info: >
This lets you retrieve some additional system information during
runtime. Use 'hotfix facts' to see all the known facts.
author: Noccy <cvagnetoft@gmail.com>
lang: python
---
print "Architecture: " + fact("system.arch")
print "Distribution: " + fact("lsb.id")