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

fixed the issue related to user_profile being empty in zvmsdk.conf file #761

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions zvmsdk/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,11 @@ def guest_create(self, userid, vcpus, memory, disk_list=None,

if not user_profile or len(user_profile) == 0:
user_profile = CONF.zvm.user_profile
if not user_profile:
errmsg = ('Invalid "user_profile" input, user_profile '
'cannot be empty.')
LOG.error(errmsg)
raise exception.SDKInvalidInputFormat(msg=errmsg)

action = "create guest '%s'" % userid
with zvmutils.log_and_reraise_sdkbase_error(action):
Expand Down
Loading