Capture output for debugging purposes

This commit is contained in:
Dmitrii Dolgov 2020-02-13 17:03:59 +01:00
parent e11f787664
commit 8a81bc7464
1 changed files with 4 additions and 1 deletions

View File

@ -423,7 +423,10 @@ class K8s:
self.wait_for_operator_pod_start()
def create_with_kubectl(self, path):
subprocess.run(["kubectl", "create", "-f", path])
subprocess.run(
["kubectl", "create", "-f", path],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
if __name__ == '__main__':