examples/pod_exec.py: fix example
Use get_default_copy() API with configuration.
@@ -117,6 +117,9 @@ def exec_commands(api_instance):
def main():
config.load_kube_config()
+ try:
+ c = Configuration().get_default_copy()
+ except AttributeError:
c = Configuration()
c.assert_hostname = False
Configuration.set_default(c)
