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

core: avoid null value so the ${DiskName} will be injected #370

Merged
merged 1 commit into from
May 30, 2022

Conversation

ArtiomDivak
Copy link
Member

if somehow withoption function get null as variablevalue it will not
try to inject variablevalue instead of variableName so this cause the message to
look like this:
Cannot remove Virtual Disk. Disk ${DiskName} is being moved or copied.
so I added validation of getParameters().getNewAlias() and getParameters().getDiskAlias()
and if both are null the LockMessage will be somthing more genaric and will look like this:
Cannot remove Virtual Disk. Related operation is currently in progress. Please try again later.
and if at list one of them is not null I can inject into the message so the message will look like this:
Cannot remove Virtual Disk. Disk vm_disk is being moved or copied.

Bug-Url: https://bugzilla.redhat.com/2039746
Signed-off-by: Artiom Divak adivak@redhat.com

@ahadas ahadas added the storage label May 12, 2022
@ArtiomDivak ArtiomDivak force-pushed the bug-2039746 branch 3 times, most recently from 09a7804 to 1e21ce7 Compare May 15, 2022 04:57
@sleviim
Copy link
Member

sleviim commented May 17, 2022

once you ack all comments, please press 'mark as resolved so the patch will get merged.

@ahadas ahadas self-requested a review May 18, 2022 09:57
@ArtiomDivak
Copy link
Member Author

/ost

@ArtiomDivak
Copy link
Member Author

/OST

@barpavel
Copy link
Member

/ost

@ahadas ahadas self-requested a review May 24, 2022 21:26
@ArtiomDivak ArtiomDivak force-pushed the bug-2039746 branch 2 times, most recently from 3b61feb to 4e6345c Compare May 25, 2022 03:38
if somehow withoption function get null as variablevalue it will not
try to inject variablevalue instead of variableName so this cause the message to
look like this:
Cannot remove Virtual Disk. Disk ${DiskName} is being moved or copied.
so I added validation of getParameters().getNewAlias() and getParameters().getDiskAlias()
and if both are null the LockMessage will be somthing more genaric and will look like this:
Cannot remove Virtual Disk. Related operation is currently in progress. Please try again later.
and if at list one of them is not null I can inject into the message so the message will look like this:
Cannot remove Virtual Disk. Disk vm_disk is being moved or copied.

Bug-Url: https://bugzilla.redhat.com/2039746
Signed-off-by: Artiom Divak <adivak@redhat.com>
@ahadas
Copy link
Member

ahadas commented May 26, 2022

/ost

@barpavel barpavel self-requested a review May 26, 2022 18:59
@ArtiomDivak
Copy link
Member Author

/ost

2 similar comments
@ArtiomDivak
Copy link
Member Author

/ost

@bennyz
Copy link
Member

bennyz commented May 30, 2022

/ost

@bennyz bennyz merged commit 1912ed6 into oVirt:master May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants