diff options
author | Andy Grover <agrover@redhat.com> | 2014-02-18 14:50:27 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2014-02-18 14:50:27 -0800 |
commit | 6bfec887b463452727bd182f09f7030de6cd632a (patch) | |
tree | 03cf23f00207c5636f509bcfc6e36970271c89f1 | |
parent | 9a8b2053bc323a766477a2c052ce39a90f87323b (diff) | |
download | rtslib-fb-6bfec887b463452727bd182f09f7030de6cd632a.tar.gz |
Add a message if no configfile is found
Add a print (to stdout, not stderr) if no config file is found, but try
not to make it too scary, since this is perfectly fine.
Fix typo in comment.
Signed-off-by: Andy Grover <agrover@redhat.com>
-rwxr-xr-x | scripts/targetctl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/targetctl b/scripts/targetctl index d0b8c5f..cc4eb99 100755 --- a/scripts/targetctl +++ b/scripts/targetctl @@ -46,7 +46,8 @@ def restore(from_file): try: errors = RTSRoot().restore_from_file(restore_file=from_file) except IOError: - # Not an error is the restore file is not present + # Not an error if the restore file is not present + print("No saved config file at %s, ok, exiting" % from_file) sys.exit(0) if errors: |