Fix three nits

These were caught in earlier reviews.

Change-Id: I026678fbbe871ffb138fd2c0dba9e788457da3a0
This commit is contained in:
Monty Taylor
2015-11-30 07:44:10 -06:00
parent 714c934d0c
commit b23025acaa
3 changed files with 4 additions and 3 deletions

View File

@@ -298,7 +298,8 @@ def main():
dns.print_dns(client, options.name)
# Remove the ansible inventory cache so that next run finds the new
# server
os.unlink('/var/cache/ansible-inventory.json')
if os.path.exists('/var/cache/ansible-inventory/ansible-inventory.cache'):
os.unlink('/var/cache/ansible-inventory/ansible-inventory.cache')
if __name__ == '__main__':
main()