History | View | Annotate | Download (1.2 kB)
Detect wrong Python module structure
If, for one reason or another, a module named "ganeti.ganeti" can besuccesfully imported (e.g. through a symlink in the wrong place), errorwhich are diffcult to debug can occur. This piece of code tests for theunlikely case of that happening....
Add targetted pylint disables
This patch adds targeted pylint disables, where it makes sense (eitherdue to limitations in pylint or due to historical usage), and also a fewblanket ones in rapi where all the names are… “different”.
Signed-off-by: Iustin Pop <iustin@google.com>...
Remove the shebang from modules
Since modules are not directly executables, remove the shebang fromthem. This helps with lintian warnings.
Also make the autogenerated _autoconf.py contain two comment lines atthe beginning, like the other modules.
Reviewed-by: ultrotter
Initial commit.