Yuvipanda has submitted this change and it was merged.
Change subject: checkhosts: Fix pyflakes warnings
......................................................................
checkhosts: Fix pyflakes warnings
Change-Id: I07ef81de307860b1bf8a2929eac2888f403e1d1d
---
M checkhosts/HCli.py
M checkhosts/HHelp.py
M checkhosts/check-hosts.py
3 files changed, 2 insertions(+), 3 deletions(-)
Approvals:
Yuvipanda: Looks good to me, approved
jenkins-bot: Verified
diff --git a/checkhosts/HCli.py b/checkhosts/HCli.py
index 20cefe5..9bffbdc 100644
--- a/checkhosts/HCli.py
+++ b/checkhosts/HCli.py
@@ -69,7 +69,7 @@
self.hr.displayHosts()
def cliDoSet(self, setCommand):
- sourceName = command.split()[1]
+ sourceName = setCommand.split()[1]
if sourceName not in self.knownSources:
print "Unknown source"
print HHelp.getSourcesHelp(self.knownSources)
diff --git a/checkhosts/HHelp.py b/checkhosts/HHelp.py
index db86514..b31c0b0 100644
--- a/checkhosts/HHelp.py
+++ b/checkhosts/HHelp.py
@@ -1,4 +1,3 @@
-import os
import sys
"""All methods in this file return help message strings
diff --git a/checkhosts/check-hosts.py b/checkhosts/check-hosts.py
index c2197a0..0c82149 100644
--- a/checkhosts/check-hosts.py
+++ b/checkhosts/check-hosts.py
@@ -3,7 +3,7 @@
import HHelp
import HOptions
import HCli
-from HSources import Source, DecomPuppet, DecomRackTables, Salt, Dsh, Dhcp
+from HSources import Source, DecomPuppet, DecomRackTables, Dsh, Dhcp
from HSources import Dns, Puppet, PuppetCerts, LogPuppet, PuppetStoredConfigs
import HFilter
import HReport
--
To view, visit https://gerrit.wikimedia.org/r/169249
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I07ef81de307860b1bf8a2929eac2888f403e1d1d
Gerrit-PatchSet: 1
Gerrit-Project: operations/software
Gerrit-Branch: master
Gerrit-Owner: Tim Landscheidt <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits