// QueryState implements plan.Resource.
QueryState implements plan.Resource.
// QueryState implements plan . Resource .
func (p *OS) QueryState(r plan.Runner) (plan.State, error) {
	err := p.query(r)
	if err != nil {
		return plan.EmptyState, err
	}
	return p.State(), nil
}
func ( p * OS ) QueryState ( r plan . Runner ) ( plan . State , error ) { err := p . query ( r ) if err != nil { return plan . EmptyState , err } return p . State ( ) , nil }
QueryState implements plan.Resource.
QueryState implements plan . Resource .