From 0f8623f7928d501fd39cc1768518ca39fdca302b Mon Sep 17 00:00:00 2001 From: Mike Place Date: Wed, 10 Dec 2014 16:47:57 -0700 Subject: [PATCH] More lint --- salt/modules/sysrc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/sysrc.py b/salt/modules/sysrc.py index 1a5e329d3d..8cdc024eb9 100644 --- a/salt/modules/sysrc.py +++ b/salt/modules/sysrc.py @@ -51,7 +51,7 @@ def get(**kwargs): rcfile = sysrc.split(': ')[0] var = sysrc.split(': ')[1] val = sysrc.split(': ')[2] - if not rcfile in ret: + if rcfile not in ret: ret[rcfile] = {} ret[rcfile][var] = val return ret @@ -86,7 +86,7 @@ def set(name, value, **kwargs): var = sysrc.split(': ')[1] oldval = sysrc.split(': ')[2].split(" -> ")[0] newval = sysrc.split(': ')[2].split(" -> ")[1] - if not rcfile in ret: + if rcfile not in ret: ret[rcfile] = {} #ret[rcfile][var] = {} #ret[rcfile][var]['old'] = oldval