From 4e382e283a3ab5bf53695bc6eee571ec5dad9a1b Mon Sep 17 00:00:00 2001 From: David Boucha Date: Thu, 21 Mar 2013 10:26:02 -0600 Subject: [PATCH] Assign ips first. This was broken on Windows since ips was referenced in the return but was never created --- salt/grains/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/grains/core.py b/salt/grains/core.py index 9ec0f8cdee..3adbdda2c2 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -739,6 +739,7 @@ def ip4(): ''' Return a list of ipv4 addrs ''' + ips = '' if salt.utils.is_windows(): # TODO: Add windows ip addrs here pass