Fixing pylint errors

This commit is contained in:
nmadhok 2014-06-21 01:22:31 -04:00
parent a1b53b482b
commit f918e08c16

View File

@ -51,6 +51,7 @@ except ImportError:
pass
log = logging.getLogger(__name__)
class SaltRaetRoadStack(ioflo.base.deeding.Deed):
'''
Initialize and run raet udp stack for Salt
@ -225,7 +226,8 @@ class SaltRaetRoadStackRejected(ioflo.base.deeding.Deed):
if stack.remotes:
rejected = (stack.remotes.values()[0].acceptance
== raeting.acceptances.rejected)
else: #no remotes so assume rejected
else:
#no remotes so assume rejected
rejected = True
self.status.update(rejected=rejected)
@ -282,6 +284,7 @@ class SaltRaetRoadStackAllowed(ioflo.base.deeding.Deed):
allowed = stack.remotes.values()[0].allowed
self.status.update(allowed=allowed)
class SaltRaetRoadStackManager(ioflo.base.deeding.Deed):
'''
Runs the manage method of RoadStack