verify-flags-underscore.py: ignore juju variables

This commit is contained in:
Eric Paris
2015-08-14 15:30:46 -04:00
parent f3fd2e1028
commit b432f036db
2 changed files with 3 additions and 14 deletions

View File

@@ -108,6 +108,9 @@ def line_has_bad_flag(line, flagre):
# These are usually yaml definitions
if result.endswith(":"):
return False
# something common in juju variables...
if "template_data[" + result + "]" in line:
return False
return True
return False