Skip to content

Commit

Permalink
add log_file to console xml
Browse files Browse the repository at this point in the history
  log_file needs to be added
Signed-off-by: nanli <[email protected]>
  • Loading branch information
nanli1 committed Jul 12, 2023
1 parent 2859166 commit ef8596f
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_file')

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_file', 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 ef8596f

Please sign in to comment.