def state_name(sname):
    return sname.split('.', 1)[0]


# Quick and dirty way to get attribute access for dictionary keys.
# So, we can do: ${apache.port} instead of ${apache['port']} when possible.
Return the name of the state regardless if sname is
dataset/ETHPy150Open saltstack/salt/salt/renderers/stateconf.py/state_name