Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
0871eadc
Commit
0871eadc
authored
Sep 17, 2015
by
kytv
Browse files
Typo corrections (s/actice/active/g)
Will-fix:
#10218
parent
b8d2a80b
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/support/helpers/vm_helper.rb
View file @
0871eadc
...
...
@@ -175,7 +175,7 @@ class VM
def
set_cdrom_boot
(
image
)
if
is_running?
raise
"boot settings can only be set for inacti
c
e vms"
raise
"boot settings can only be set for inacti
v
e vms"
end
set_boot_device
(
'cdrom'
)
set_cdrom_image
(
image
)
...
...
@@ -269,7 +269,7 @@ class VM
# XXX-9p in common_steps.rb for more information.
def
add_share
(
source
,
tag
)
if
is_running?
raise
"shares can only be added to inacti
c
e vms"
raise
"shares can only be added to inacti
v
e vms"
end
# The complete source directory must be group readable by the user
# running the virtual machine, and world readable so the user inside
...
...
@@ -294,7 +294,7 @@ class VM
end
def
set_ram_size
(
size
,
unit
=
"KiB"
)
raise
"System memory can only be added to inacti
c
e vms"
if
is_running?
raise
"System memory can only be added to inacti
v
e vms"
if
is_running?
domain_xml
=
REXML
::
Document
.
new
(
@domain
.
xml_desc
)
domain_xml
.
elements
[
'domain/memory'
].
text
=
size
domain_xml
.
elements
[
'domain/memory'
].
attributes
[
'unit'
]
=
unit
...
...
@@ -311,21 +311,21 @@ class VM
end
def
set_arch
(
arch
)
raise
"System architecture can only be set to inacti
c
e vms"
if
is_running?
raise
"System architecture can only be set to inacti
v
e vms"
if
is_running?
domain_xml
=
REXML
::
Document
.
new
(
@domain
.
xml_desc
)
domain_xml
.
elements
[
'domain/os/type'
].
attributes
[
'arch'
]
=
arch
update
(
domain_xml
.
to_s
)
end
def
add_hypervisor_feature
(
feature
)
raise
"Hypervisor features can only be added to inacti
c
e vms"
if
is_running?
raise
"Hypervisor features can only be added to inacti
v
e vms"
if
is_running?
domain_xml
=
REXML
::
Document
.
new
(
@domain
.
xml_desc
)
domain_xml
.
elements
[
'domain/features'
].
add_element
(
feature
)
update
(
domain_xml
.
to_s
)
end
def
drop_hypervisor_feature
(
feature
)
raise
"Hypervisor features can only be fropped from inacti
c
e vms"
if
is_running?
raise
"Hypervisor features can only be fropped from inacti
v
e vms"
if
is_running?
domain_xml
=
REXML
::
Document
.
new
(
@domain
.
xml_desc
)
domain_xml
.
elements
[
'domain/features'
].
delete_element
(
feature
)
update
(
domain_xml
.
to_s
)
...
...
@@ -348,7 +348,7 @@ EOF
def
set_os_loader
(
type
)
if
is_running?
raise
"boot settings can only be set for inacti
c
e vms"
raise
"boot settings can only be set for inacti
v
e vms"
end
if
type
==
'UEFI'
domain_xml
=
REXML
::
Document
.
new
(
@domain
.
xml_desc
)
...
...
kytv
@kytv
mentioned in issue
#10218 (closed)
·
May 14, 2020
mentioned in issue
#10218 (closed)
mentioned in issue #10218
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment