a =`@s2ddlZddlmZddlZddlZdddZdS)N) validatorcCs|stjdd}tjdd}|jddd|jddd|jd d d d d ||}|jrltjdtj dt |j |j }|dkrtdn|dkrtddS)Nrz[Validate a config file from the .ebextensions directory against a allowlist of dictionaries) description config_filez(Config file from .ebextensions directory)helpallowlist_filezAFile which defines a allowlist of dictionaries. Regex can be usedz-vz --verbosez5Print information about not allowlisted configuration store_true)ractionz * %(message)s)formatlevelTzConfiguration is in allowlistFzConfiguration NOT in allowlist)sysargvargparseArgumentParser add_argument parse_argsverboselogging basicConfigINFOrvalidaterrprint)argsparserresultru/Users/fuellbie/tools/aws-elastic-beanstalk-deployment-workflow/ebextensions-validator/ebextensions_validator/main.pymain s0  r)N)rrrr rrrrrs