Project

General

Profile

Actions

Bug #20925

closed

katello-change-hostname should check exit codes of shell executions

Added by Evgeni Golov over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

currently, k-c-h does a lot `something in shell`, but never verifies the exit code and thus does not know if the execution actually succeeded.

I think it should verify that every execution returned 0 and abort the rename if that is not the case. ideally, the abort is coupled with a rollback, if that is feasible.

Actions

Also available in: Atom PDF