Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR]: Remove distracting and irrelevant error messages #3

Open
1 task done
hendesi opened this issue Dec 22, 2021 · 0 comments
Open
1 task done

[MINOR]: Remove distracting and irrelevant error messages #3

hendesi opened this issue Dec 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hendesi
Copy link
Collaborator

hendesi commented Dec 22, 2021

Problem

When running a deployment, the provider logs strange error messages such as:

2021-12-21T14:18:50+0100 info de.apodini.IoTDeployment : Running action createDeploymentDir
-bash: line 1: cd: /usr/deployment: No such file or directory
-bash: line 1: : command not found

Directory at /usr/deployment created.

While they do not affect the deployment itself, they are distracting and can be misleading for inexperienced users.

Solution

The code sample above seems to be related to this method.

To silence these error messages, refactor this and related methods by either rewriting the checks (e.g. if a directory exists) and preventing the logging.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@hendesi hendesi added the enhancement New feature or request label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant