KubeUtils get_api_url fix

After refactoring ExecUtils, "exec_command" method stopped
adding '\r' to the end returned string. This PS changes get_api_url behavior
according to the new behavior of "exec_command".

TrivialFix

Change-Id: Ic31b06326288ef455b334cdd578ad230c701532d
This commit is contained in:
Serguei Bezverkhi 2016-07-25 16:10:44 -04:00
parent 772ba70654
commit d68f30d0e2
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class KubeUtils(object):
if code is not None:
return ('', code)
current_context = res[:-1]
current_context = res
res, code = ExecUtils.exec_command('kubectl config view')
if code is not None: