Skip to content

Commit

Permalink
RED-32089 iteritems is deprecated from python3.
Browse files Browse the repository at this point in the history
(cherry picked from commit 83efe71)
  • Loading branch information
Roey Prat committed Sep 26, 2019
1 parent 82035ed commit 0eef667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def collect_api_resources(namespace, output_dir):
resources_out[resource] = run_kubectl_get(namespace, resource)
logger.info(" + {}".format(resource))

for entry, out in resources_out.iteritems():
for entry, out in resources_out.items():
with open(os.path.join(output_dir, "{}.yaml".format(entry)), "w+") as fp:
fp.write(out)

Expand Down

0 comments on commit 0eef667

Please sign in to comment.