]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvmetcli: Report save name correctly
authorTony Asleson <tasleson@redhat.com>
Thu, 26 Mar 2020 18:07:50 +0000 (13:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Apr 2020 09:00:14 +0000 (11:00 +0200)
commitfd09200bba73011b4b7086c96e394ce875fdd38f
tree7e9c16396e1a84efad36db0350c8d17058df1613
parent477a04b18e8754dc3f75110f0e7e6cdac70217aa
nvmetcli: Report save name correctly

When a user simply does 'nvmetcli restore' without
specifying a file name the default is used.  However, if the
restore fails you end up with the error message:

Error processing config file at None, error [Errno 1] Operation not
permitted: '/sys/kernel/config/nvmet/ports/0/ana_groups/1', exiting

Correct file name if None in error path.

Error processing config file at /etc/nvmet/config.json, error \
[Errno 1] Operation not permitted: \
'/sys/kernel/config/nvmet/ports/1/ana_groups/1', exiting

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmet/__init__.py
nvmetcli