Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandru Croitor
minicoin
Commits
99a080d4
Commit
99a080d4
authored
Mar 04, 2022
by
Volker Hilsheimer
Browse files
Don't overwrite machine name with disk name
parent
2d652b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
minicoin/Vagrantfile
View file @
99a080d4
...
...
@@ -218,13 +218,13 @@ Vagrant.configure("2") do |config|
# storage setup, using the experimental 'disks' vagrant feature. It is not implemented
# for most providers and anyway won't do anything unless VAGRANT_EXPERIMENTAL="disks"
# is set, so the _setup methods that come next will implement the feature where we can.
name
=
"data0"
disk
name
=
"data0"
storages
=
machine
[
"storage"
]
||
[]
storages
=
[
storages
]
unless
storages
.
is_a?
(
Array
)
storages
.
each
do
|
storage
|
storage
=
{
"size"
=>
storage
}
unless
storage
.
is_a?
(
Hash
)
box
.
vm
.
disk
:disk
,
name:
storage
[
'name'
]
||
name
,
size:
"
#{
storage
[
'size'
]
}
GB"
name
.
next!
box
.
vm
.
disk
:disk
,
name:
storage
[
'name'
]
||
disk
name
,
size:
"
#{
storage
[
'size'
]
}
GB"
disk
name
.
next!
end
# call provider specific plugin extensions to map general minicoin configs to
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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