Commit 1b4f1e17 by Brian Coca

Merge pull request #9555 from bcoca/low_cost_facts

allow fact objects to be instantiated w/o triggering all fact collection
parents fd987f53 504995bd
......@@ -120,8 +120,11 @@ class Facts(object):
{ 'path' : '/usr/bin/pkg', 'name' : 'pkg' },
]
def __init__(self):
def __init__(self, load_on_init=True):
self.facts = {}
if load_on_init:
self.get_platform_facts()
self.get_distribution_facts()
self.get_cmdline()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment