(self, in_data)
return results
See the opsmop-demo TOML inventory example for host variable shorthand.
See the opsmop-demo TOML inventory example for host variable shorthand.
See the opsmop - demo TOML inventory example for host variable shorthand .
def _shlex_parse(self, in_data):
        """
        See the opsmop-demo TOML inventory example for host variable shorthand.
        """
        # in: "a=2, b='3 4 5'" or dict (if so, just return it)
        # out: dict(a=2, b='3 4 5')
        if type(in_data) == dict:
            return in_data
        results = dict()
        data = shlex.split(in_data)
        for entry in data:
            (k,v) = entry.split("=",1)
            results[k] = v
        return results
def _shlex_parse ( self , in_data ) : # in: "a=2, b='3 4 5'" or dict (if so, just return it) # out: dict(a=2, b='3 4 5') if type ( in_data ) == dict : return in_data results = dict ( ) data = shlex . split ( in_data ) for entry in data : ( k , v ) = entry . split ( "=" , 1 ) results [ k ] = v return results