Page MenuHomeDevCentral

node.has doesn't return boolean when parameter is string
Closed, ResolvedPublic

Description

The node.has execution module method is expected to return a boolean if the value is present and truthy.

Instead, it actually returns the value.

Ysul
$ salt-call --local node.get
    zfs:                               
        ----------                     
        pool:                                                                                                                                                  
            arcology

$ salt-call --local node.has zfs:pool
local:                                 
    arcology