Update state.py

https://github.com/saltstack/salt/pull/7992#issuecomment-26747276
if->elif per @s0undt3ch
Merge pull request #8001 from eliasp/eauth-typo

Corrected typo (extended auth → external auth).
Corrected typo (fromt he → from the).
Merge pull request #8007 from eliasp/auth-init-typo

Corrected typo (fromt he → from the).
slice the string. Don't use lstrip incorrectly
Merge pull request #8008 from UtahDave/develop

slice the string. Don't use lstrip incorrectly
Realized that the lexical grant parser doesn't handle multi-word statements. Corrected for this condition.
Minor code reformat.
Let's focus on just using the keystone configs in salt
Clarify documentation for nova module
Merge pull request #868 from techhat/nova

Initial commit of nova driver
Added check about empty string
Merge pull request #8011 from malinoff/fix-no-output

Fix printing newline if there is nothing to print
Merge pull request #7992 from puluto/develop

Update state.py
Adding close process and service stop to windows installer
Pass cmd as list, not string, to subprocess.Popen. Otherwise, packages installed from files will fail with: OSError: [Errno 2] No such file or directory
Merge pull request #8003 from cloudflare/fix-state-__pub_jid-keyerror

Generate jid in _wait in state module if not specified
Merge pull request #7971 from cachedout/grains_refresh_every

Grains refresh every
hard default grains refresh to be disabled