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 #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to John Mitsch
  • Pull request https://github.com/Katello/katello-packaging/pull/530 added
Actions #2

Updated by John Mitsch over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Brad Buckingham over 6 years ago

  • Target version set to 213
Actions #4

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 250
Actions

Also available in: Atom PDF