in facter 1.6.7, we are getting facts output as below,
uptime => 135 days uptime_days => 135 uptime_hours => 3259 uptime_seconds => 11735064 so we can use this as facts filter in mco query. On Tuesday, March 21, 2017 at 10:31:08 AM UTC+5:30, michael.smith wrote: > > > > On Mon, Mar 20, 2017 at 9:07 PM <[email protected] <javascript:>> wrote: > >> yes please. >> >> Michael, >> >> By downgrading I can get facts in non nested structure and can be used to >> with mco query facts filter. >> >> > $ facter --version > 2.4.6 > $ facter > ... > system_uptime => {"seconds"=>3672217, "hours"=>1020, "days"=>42, > "uptime"=>"42 days"} > timezone => PDT > uptime => 42 days > uptime_days => 42 > uptime_hours => 1020 > uptime_seconds => 3672217 > virtual => physical > > How is that not what you want already? The uptime facts are still there in > the output. I might be missing something about how the mco facts query > works, but it should still be queryable. > -- --- You received this message because you are subscribed to the Google Groups "mcollective-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
