Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't warn if prefs file doesn't exist #56

Conversation

tserong
Copy link
Contributor

@tserong tserong commented May 1, 2020

The first time configshell is used, prefs.bin won't exist, so you'll see something like:

Warning: Could not load preferences file /root/.whatever/prefs.bin.

If the file doesn't actually exist, this warning is just confusing, so I've added an existence check to Prefs.load()

Signed-off-by: Tim Serong tserong@suse.com

The first time configshell is used, prefs.bin won't exist, so
you'll see something like:

Warning: Could not load preferences file /root/.whatever/prefs.bin.

If the file doesn't actually exist, this warning is just confusing,
so I've added an existence check to Prefs.load()

Signed-off-by: Tim Serong <tserong@suse.com>
@LenzGr
Copy link

LenzGr commented Jul 1, 2020

I stumbled over this issue myself - thanks for reporting this @tserong

Is there anything missing in order to get this merged?

@maurizio-lombardi maurizio-lombardi merged commit 496c60a into open-iscsi:master Jul 2, 2020
@tserong tserong deleted the wip-dont-warn-if-prefs-dont-exist branch July 3, 2020 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants