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

filesystem.py: add boot order attribute for filesystem device #3778

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

meinaLi
Copy link
Contributor

@meinaLi meinaLi commented Oct 12, 2023

Add boot order attribute for filesystem device.

Copy link
Contributor

@cliping cliping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -29,6 +29,8 @@ def __init__(self, type_name='mount', virsh_instance=base.base.virsh):
accessors.XMLElementDict('alias', self,
parent_xpath='/',
tag_name='alias')
accessors.XMLAttribute('boot', self, parent_xpath='/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider XMLElementDict if there are new attributes to 'boot' element in the future.
And we could keep the current implement if the chance of adding new attribute is really small.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can keep it in current status because it is unlikely that there will be a new attribute to 'boot' element. If there are indeed changes later, we can update them together.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course.

@meinaLi meinaLi requested a review from chloerh November 2, 2023 08:35
@@ -29,6 +29,8 @@ def __init__(self, type_name='mount', virsh_instance=base.base.virsh):
accessors.XMLElementDict('alias', self,
parent_xpath='/',
tag_name='alias')
accessors.XMLAttribute('boot', self, parent_xpath='/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course.

@chloerh chloerh merged commit 5cc825b into avocado-framework:master Nov 3, 2023
49 checks passed
yiqianwei pushed a commit to yiqianwei/avocado-vt that referenced this pull request Nov 6, 2023
filesystem.py: add boot order attribute for filesystem device
@meinaLi meinaLi deleted the fs_boot branch November 7, 2023 03:33
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.

3 participants