Skip to content

Commit f43f84c

Browse files
committed
Removed usages of bytes to make everything string
1 parent feaf3e1 commit f43f84c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

utils/ClusterInquirer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def setupLocalKube(self, path):
3030
authDir = os.path.join(path, 'auth')
3131
kubeconfig = ''
3232
kubeadmin_password = ''
33-
with open( os.path.join(authDir, 'kubeconfig'), 'rb') as file:
33+
with open( os.path.join(authDir, 'kubeconfig'), 'r') as file:
3434
kubeconfig = file.read()
35-
with open( os.path.join(authDir, 'kubeadmin-password'), 'rb') as file:
35+
with open( os.path.join(authDir, 'kubeadmin-password'), 'r') as file:
3636
kubeadmin_password = file.read()
3737
writeKube(kubeconfig)
3838
writeKubePass(kubeadmin_password)

utils/kubeFileHandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
KUBE_PASS_FILE = path.join(KUBE_PATH,'kubeadmin-password')
66

77
def writeKube(data):
8-
with open(KUBE_CONFIG_FILE,'wb') as file:
8+
with open(KUBE_CONFIG_FILE,'w') as file:
99
file.write(data)
1010

1111
def readFromKube():
@@ -21,5 +21,5 @@ def readKubePass():
2121
return data
2222

2323
def writeKubePass(kubepass):
24-
with open(KUBE_PASS_FILE,'wb') as file:
24+
with open(KUBE_PASS_FILE,'w') as file:
2525
file.write(kubepass)

0 commit comments

Comments
 (0)