To start translation, we need to initially import the
translation file - and place it at the proper place so that
the usual CI scripts can handle it.
The proper place is for all python projects
$PROJECT/locale/$PROJECT.pot - see setup.cfg.
Note that we were using _i18n.py from openstack/common
which is likely to go away, so created our own i18n.py
module per best practices:
Further imports will be done by the OpenStack Proposal bot.
implements blueprint magnum-i18n-support
yaml.loader is unsafe from a security perspective. From the
Warning: It is not safe to call yaml.load with any data received
from an untrusted source! yaml.load is as powerful as pickle.load
and so may call any Python function.
I am pretty sure we don't want k8s users calling any python function ;-)
Paritally-Implements: blueprint gate-bandit
When resource pod/rc/service is created with no
manifest, 500 status is returned to user due to
unhandled exception. This patch make this resource
creation return 400 status to user when no manifest
is passed. Also added test for empty manifest.
newer hacking has rules for the following:
H105 Don't use author tags
H238 old style class declaration, use new style (inherit from `object`)
W292 no newline at end of file
So we need to clean them up and stop ignoring them