Closed lee212 closed 9 years ago
In cmd3, DynamicCmd() imports plugins in cloudmesh and some of the plugins create mongodb connection in their imports. These imports are removed or moved into the function where it uses to change the scope of the imports. This change removes db connection when we run cm.
In addition, some plugins initialize cm_mongo() class objects inside of the activate_cm_shell_xxx() function in which cmd3 registers command. This wrong use have been fixed by moving the initializations to the outside of activate_cm_shell_xxx().
cm man is now executable without creating mongodb connection.
cm
command is supposed to run without mongo running or celery running. To achieve this goal, we need to separate particular commands (i.e.cm man
andcm [command] help
) from the mongo initialization or celery connection.cm man
command provides a list of help messages for all available commands in cm.cm [command] help
provides a help mssage on a given command.Current cm looks like:
We may not see this error once we split the loading mongo db from
help
orman
command.