Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Improve dependency management output #140

Merged
merged 2 commits into from
Oct 3, 2017
Merged

Conversation

macartur
Copy link
Contributor

Fix #135

Copy link
Contributor

@diraol diraol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@macartur I think that we need to do some logic changes regarding napp installation and activation.

IMHO the napp dependencies must be installed prior to the installation of the napp itself. If the installation of any dependency fails, then the process must be stopped [the best scenario would be to get the system back to the point it was before the installation was called, but lets not worry about it now].

The same goes for 'enabling' a NApp. Before enabling a NApp we need to successfully enable its requirements. Always.

@cemsbr
Copy link
Contributor

cemsbr commented Oct 2, 2017

@diraol, you are right. We could open another issue with what you said. I opened this one just to make the output less confusing, without changing functionality.

Copy link
Contributor

@cemsbr cemsbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(see below)

Copy link
Contributor

@cemsbr cemsbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only some indentation is not as requested. The idea is two have 2 columns: 1 for level (INFO, WARNING, ERROR) and the second for the message. The indentation is 2 spaces.

Particularly, the lines above "Installing Dependencies:" are not indented in a level below and the warning message indentation is more than 2 spaces away from the above message.

LOG.info('Installing Dependencies:')
cls.install_napps(napp_dependencies)
else:
LOG.warning(' Napp already Enabled.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"NApp already installed and enabled." would be a bit better.

@diraol
Copy link
Contributor

diraol commented Oct 3, 2017

Ok @cemsbr let's move my suggestion to another issue then (#141).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants