[ create a new paste ] login | about

Link: http://codepad.org/hNXqM58L    [ raw code | fork ]

Python, pasted on Apr 28:
import os
import sys

def isdell():

    grains = {}
    bleh = 'Is Dell:'
    grains['isdell'] = ('smbios-sys-info-lite | grep' + bleh)
    return grains


after updating then running the below
salt-call grains.items
isdell:
        smbios-sys-info-lite | grepIs Dell:


actual output of the command running
smbios-sys-info-lite | grep 'Is Dell'
Is Dell:      1

Trying to make a grain that says 
isdell: 1
or 
isdell: 0


Create a new paste based on this one


Comments: