Project

General

Profile

Actions

Bug #19622

closed

katello-restore `dup': can't dup NilClass (TypeError) when no directory specified

Added by Christine Fouant over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1451833

Description of problem:

Calling katello-restore without arguments:

  1. katello-restore
    /usr/bin/katello-restore:20:in `dup': can't dup NilClass (TypeError)
    from /usr/bin/katello-restore:20:in `<main>'

Expected results:

katello-restore should either display a message instructing user to specify the restore directory or just display the help output:

]# katello-restore
Usage: katello-restore /path/to/dir [options]
eg: $ katello-restore /tmp/backup/katello-backup-2016-09-30T00:00:00+00:00
-y, --assumeyes Answer yes for all questions

Actions

Also available in: Atom PDF