Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F28368391
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
jbond
Mar 11 2019, 5:10 PM
2019-03-11 17:10:44 (UTC+0)
Size
760 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
--- a/cookbooks/sre/hosts/ipmi-password-reset.py
+++ b/cookbooks/sre/hosts/ipmi-password-reset.py
@@ -41,7 +41,6 @@ def run(args, spicerack):
ipmi = spicerack.ipmi()
mgmt = spicerack.management()
remote = spicerack.remote()
- irc_logger = spicerack.irc_logger()
# start by collecting all physical hosts
remote_hosts = remote.query('F:virtual = physical').hosts
# get the hosts that intersect with the user query
@@ -73,7 +72,8 @@ def run(args, spicerack):
continue
break
- irc_logger.info(reason)
+ if not args.dry_run:
+ spicerack.irc_logger.info(reason)
host_status = {'success': NodeSet(), 'fail_dns': NodeSet(), 'fail_ipmi': NodeSet()}
for host in remote_hosts:
try:
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7172580
Default Alt Text
raw.txt (760 B)
Attached To
Mode
P8177 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment