tests: Fixes Python3 compatibility

The Python code used in the example_cluster_dns test is not compatible with Python3.

Keeping in mind that Python2 will no longer be supported from 2020 onwards, it is a good idea to address this issue.
This commit is contained in:
Claudiu Belu 2019-03-21 14:32:25 +02:00 committed by GitHub
parent ad4727440c
commit e372f56b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,9 +43,9 @@ const queryDnsPythonTemplate string = `
import socket
try:
socket.gethostbyname('%s')
print 'ok'
print('ok')
except:
print 'err'`
print('err')`
var _ = SIGDescribe("ClusterDns [Feature:Example]", func() {
f := framework.NewDefaultFramework("cluster-dns")