Skip to content

[NEW] redis-cli should exit != 0 when NOPERM #8127

@hydrapolic

Description

@hydrapolic

The problem/use-case that the feature addresses

When running flushall from Jenkins CI one would expect that a failing command should fail the job. However, redis-cli returns 0 even if the command is not executed and thus the job is finished as OK.

# redis-cli flushall
NOPERM this user has no permissions to run the 'flushall' command or its subcommand

# echo $?
0

Description of the feature

Any exit code except for 0 is fine.

# redis-cli flushall
NOPERM this user has no permissions to run the 'flushall' command or its subcommand

# echo $?
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:help-wantedNo member is currently implementing this change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions