Skip to content

Commit

Permalink
add log tag to console xml
Browse files Browse the repository at this point in the history
  log tag needs to be added
Signed-off-by: nanli <[email protected]>
  • Loading branch information
nanli1 committed Jul 25, 2023
1 parent 2859166 commit e0cec25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virttest/libvirt_xml/devices/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Console(CharacterBase):

__slots__ = ('protocol_type', 'target_port', 'target_type', 'sources',
'alias')
'alias', 'log')

def __init__(self, type_name='pty', virsh_instance=base.virsh):
accessors.XMLAttribute('protocol_type', self, parent_xpath='/',
Expand All @@ -26,6 +26,8 @@ def __init__(self, type_name='pty', virsh_instance=base.virsh):
has_subclass=True)
accessors.XMLElementDict('alias', self, parent_xpath='/',
tag_name='alias')
accessors.XMLElementDict('log', self, parent_xpath='/',
tag_name='log')
super(
Console, self).__init__(device_tag='console', type_name=type_name,
virsh_instance=virsh_instance)

0 comments on commit e0cec25

Please sign in to comment.