[jenkins-ci] lcitool: Use default python for creating salty passwords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On my system the crypt module in python2 doesn't have mksalt() function.
However python3 does and the code is perfectly fine python3 code as well.  So
let's make it run in the default python version as that has the highest chance
to work.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 guests/lcitool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guests/lcitool b/guests/lcitool
index ccd0a597785a..24274d800742 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -18,7 +18,7 @@ die() {
 hash_file() {
     PASS_FILE="$1"
 
-    python2 -c "
+    python -c "
 import crypt
 password = open('$PASS_FILE', 'r').read().strip()
 print(crypt.crypt(password,
-- 
2.16.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux