How long have you waited after facter was available and exposing those values? Simian will cache facter output for 3 hours, due to (likely legacy) issues with facter hanging for long periods of time.
https://github.com/google/simian/blob/master/src/simian/mac/client/flight_common.py#L68
We can probably remove this cache now, as I believe facter has been considerably faster than 5 years back when this was created, and it has since added it's own caching mechanism as well.
Perhaps delete the cache file referenced above, and run "simianfacter" to compare it's output.
// mobile
--
You received this message because you are subscribed to the Google Groups "Simian Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simian-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Facter.add('configtrack') do setcode do 'staff' endendFacter.add('site') do setcode do 'site' endendFacter.add('location') do setcode do 'location' endend
location => location
site => site
configtrack => staff
def GetFacterFacts(): """Returns a dictionary of facter facts.""" return_code, stdout, unused_stderr = Exec(['facter', '-p'], timeout=300, waitfor=0.5)
# If execution of factor was successful build the client identifier if return_code != 0: return {}
facts = {}
# Iterate over the facter output and create a dictionary of the output lines = stdout.splitlines() for line in lines: (key, unused_sep, value) = line.split(' ', 2) value = value.strip() facts[key] = value return facts
facts = GetMachineInfoFromFacter()
facts = GetFacterFacts()