BryanDavis has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/360779 )

Change subject: tools: fix chattr file path in maintain-kubeusers
......................................................................

tools: fix chattr file path in maintain-kubeusers

Fix a bad copy-n-paste introduced in aedd882 when the chattr call was
added for each tool's $HOME/.kube/config file.

Bug: T165875
Change-Id: I7a146d0a724d75d982125e35e64bc0044caa4dca
---
M modules/toollabs/files/maintain-kubeusers
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/79/360779/1

diff --git a/modules/toollabs/files/maintain-kubeusers 
b/modules/toollabs/files/maintain-kubeusers
index c3d0203..a95c54b 100755
--- a/modules/toollabs/files/maintain-kubeusers
+++ b/modules/toollabs/files/maintain-kubeusers
@@ -263,8 +263,8 @@
         os.fchown(f, int(user.id), int(user.id))
         os.fchmod(f, 0o400)
         # Prevent removal or modification of the credentials file by users
-        subprocess.check_output(['/usr/bin/chattr', '+i', file_path])
-        logging.info('Write config in %s', path)
+        subprocess.check_output(['/usr/bin/chattr', '+i', path])
+        logging.info('Wrote config in %s', path)
     except:
         logging.exception()
         raise

-- 
To view, visit https://gerrit.wikimedia.org/r/360779
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a146d0a724d75d982125e35e64bc0044caa4dca
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BryanDavis <bda...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to