Skip to content

salt-ssh exists with 0 on "Specified SLS bar.foo.blu in saltenv base is not available" #54810

@guettli

Description

@guettli

Description of Issue

salt-ssh exists with 0 ("all right") if an error occurs. This makes it unusable for reliable scripting (for example in continuous integration)

salt # salt-ssh remote-host state.sls foo.bar pillar='{...}'
remote-host:
    - Specified SLS bar.foo.blu in saltenv base is not available on the salt master or through a configured fileserver


salt:/srv # echo $?
0


salt:/srv # salt-ssh --version
salt-ssh 2019.2.0 (Fluorine)

Steps to Reproduce Issue

See above

Versions Report

See above

I was told to ping @marmarek here https://groups.google.com/d/msg/salt-users/RFYxunPOiwM/wqrDOWyUAQAJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEFeaturenew functionality including changes to functionality and code refactors, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions