Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
77a971b3
Commit
77a971b3
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Correct error in vagrant-update.
- Skip dummy Vagrant providers (like AWS) in vagrant-update.
parent
d720c0f4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documents/Shore/cleanup/vagrant-update
+8
-7
8 additions, 7 deletions
Documents/Shore/cleanup/vagrant-update
with
8 additions
and
7 deletions
Documents/Shore/cleanup/vagrant-update
+
8
−
7
View file @
77a971b3
...
@@ -5,8 +5,10 @@ from parse import parse
...
@@ -5,8 +5,10 @@ from parse import parse
boxes
=
{}
boxes
=
{}
dummy_providers
=
[
'
aws
'
]
for
line
in
vagrant
.
box
(
'
list
'
):
for
line
in
vagrant
.
box
(
'
list
'
):
box
=
parse
(
'
\x1b
[0m{name:^} ({provider}, {version})
\x1b
[0m
'
,
line
)
box
=
parse
(
'
\x1b
[0m{name:^} ({provider}, {version})
\x1b
[0m
'
,
line
)
if
not
box
[
'
provider
'
]
in
dummy_providers
:
if
box
[
'
name
'
]
in
boxes
:
if
box
[
'
name
'
]
in
boxes
:
if
not
box
[
'
provider
'
]
in
boxes
[
box
[
'
name
'
]]:
if
not
box
[
'
provider
'
]
in
boxes
[
box
[
'
name
'
]]:
boxes
[
box
[
'
name
'
]].
append
(
box
[
'
provider
'
])
boxes
[
box
[
'
name
'
]].
append
(
box
[
'
provider
'
])
...
@@ -14,6 +16,5 @@ for line in vagrant.box('list'):
...
@@ -14,6 +16,5 @@ for line in vagrant.box('list'):
boxes
[
box
[
'
name
'
]]
=
[
box
[
'
provider
'
]]
boxes
[
box
[
'
name
'
]]
=
[
box
[
'
provider
'
]]
for
box
in
boxes
:
for
box
in
boxes
:
for
provider
in
boxes
[
box
]:
for
provider
in
boxes
[
box
]:
print
(
'
Updating box {0} provider {1}.
'
).
format
(
box
[
'
name
'
],
print
(
'
Updating box {0} provider {1}.
'
).
format
(
box
,
provider
)
box
[
'
provider
'
])
vagrant
.
box
(
'
update
'
,
'
--provider
'
,
provider
,
'
--box
'
,
box
)
vagrant
.
box
(
'
update
'
,
'
--provider
'
,
provider
,
'
--box
'
,
box
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment