- run_ansible(ansible_path, ansible_hash, "%s.yml"%run_level, log)
- except KeyError, var:
- log.write( "No Ansible directive. Skipping.\n");
+ run_ansible(ansible_path, ansible_hash, "{}.yml".format(run_level), log)
+ except KeyError as var:
+ log.write("No Ansible directive. Skipping.\n");