Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Container 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
Very Demiurge Very Mindful
Kolla Ansible
Commits
039eb8d7
Commit
039eb8d7
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Consistently set sys path when using local tools"
parents
683305dd
9660b578
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
kolla/cmd/build.py
+3
-0
3 additions, 0 deletions
kolla/cmd/build.py
kolla/cmd/genpwd.py
+9
-0
9 additions, 0 deletions
kolla/cmd/genpwd.py
kolla/image/build.py
+3
-5
3 additions, 5 deletions
kolla/image/build.py
tools/version-check.py
+3
-4
3 additions, 4 deletions
tools/version-check.py
with
18 additions
and
9 deletions
kolla/cmd/build.py
+
3
−
0
View file @
039eb8d7
...
...
@@ -15,6 +15,9 @@
import
os
import
sys
# NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools instead of
# pip installed kolla tools
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
../..
'
))
if
PROJECT_ROOT
not
in
sys
.
path
:
...
...
This diff is collapsed.
Click to expand it.
kolla/cmd/genpwd.py
+
9
−
0
View file @
039eb8d7
...
...
@@ -16,11 +16,20 @@ import argparse
import
os
import
random
import
string
import
sys
import
uuid
import
yaml
from
Crypto.PublicKey
import
RSA
# NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools instead of
# pip installed kolla tools
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
../..
'
))
if
PROJECT_ROOT
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
PROJECT_ROOT
)
def
generate_RSA
(
bits
=
4096
):
new_key
=
RSA
.
generate
(
bits
,
os
.
urandom
)
...
...
This diff is collapsed.
Click to expand it.
kolla/image/build.py
+
3
−
5
View file @
039eb8d7
...
...
@@ -37,13 +37,11 @@ from oslo_config import cfg
from
requests
import
exceptions
as
requests_exc
import
six
# NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools instead of
# pip installed kolla tools
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
../..
'
))
# NOTE(SamYaple): Update the search patch to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools/build.py
# instead of pip installed kolla-build tool
if
PROJECT_ROOT
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
PROJECT_ROOT
)
...
...
This diff is collapsed.
Click to expand it.
tools/version-check.py
+
3
−
4
View file @
039eb8d7
...
...
@@ -24,12 +24,11 @@ import pkg_resources
import
prettytable
import
requests
# NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools instead of
# pip installed kolla tools
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
..
'
))
# NOTE(SamYaple): Update the search patch to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools/build.py
# instead of pip installed kolla-build tool
if
PROJECT_ROOT
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
PROJECT_ROOT
)
...
...
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