Skip to content

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

@hendesi

Description

@hendesi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions