Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
cdist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
matze
cdist
Commits
999b6985
Commit
999b6985
authored
Nov 30, 2019
by
Darko Poljak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt order dependency impl to python types impl
parent
f6fb612b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
cdist/__init__.py
cdist/__init__.py
+3
-0
cdist/core/manifest.py
cdist/core/manifest.py
+2
-5
cdist/emulator.py
cdist/emulator.py
+2
-3
No files found.
cdist/__init__.py
View file @
999b6985
...
...
@@ -47,6 +47,9 @@ REMOTE_COPY = "scp -o User=root -q"
REMOTE_EXEC
=
"ssh -o User=root"
REMOTE_CMDS_CLEANUP_PATTERN
=
"ssh -o User=root -O exit -S {}"
ORDER_DEP_STATE_NAME
=
'order_dep_state'
TYPEORDER_DEP_NAME
=
'typeorder_dep'
class
Error
(
Exception
):
"""Base exception class for this project"""
...
...
cdist/core/manifest.py
View file @
999b6985
...
...
@@ -100,9 +100,6 @@ class Manifest(object):
"""
ORDER_DEP_STATE_NAME
=
'order_dep_state'
TYPEORDER_DEP_NAME
=
'typeorder_dep'
def
__init__
(
self
,
target_host
,
local
,
dry_run
=
False
):
self
.
target_host
=
target_host
self
.
local
=
local
...
...
@@ -227,8 +224,8 @@ class Manifest(object):
os
.
remove
(
os
.
path
.
join
(
self
.
local
.
base_path
,
fname
))
except
FileNotFoundError
:
pass
_rm_file
(
Manife
st
.
ORDER_DEP_STATE_NAME
)
_rm_file
(
Manife
st
.
TYPEORDER_DEP_NAME
)
_rm_file
(
cdi
st
.
ORDER_DEP_STATE_NAME
)
_rm_file
(
cdi
st
.
TYPEORDER_DEP_NAME
)
def
env_py_type_manifest
(
self
,
cdist_object
):
env
=
os
.
environ
.
copy
()
...
...
cdist/emulator.py
View file @
999b6985
...
...
@@ -29,7 +29,6 @@ import sys
import
cdist
from
cdist
import
core
from
cdist
import
flock
from
cdist.core.manifest
import
Manifest
import
cdist.util.python_type_util
as
pytype_util
from
cdist.core.pytypes
import
get_pytype_class
import
inspect
...
...
@@ -87,9 +86,9 @@ class Emulator(object):
self
.
typeorder_path
=
os
.
path
.
join
(
self
.
global_path
,
"typeorder"
)
self
.
typeorder_dep_path
=
os
.
path
.
join
(
self
.
global_path
,
Manife
st
.
TYPEORDER_DEP_NAME
)
cdi
st
.
TYPEORDER_DEP_NAME
)
self
.
order_dep_state_path
=
os
.
path
.
join
(
self
.
global_path
,
Manife
st
.
ORDER_DEP_STATE_NAME
)
cdi
st
.
ORDER_DEP_STATE_NAME
)
self
.
type_name
=
os
.
path
.
basename
(
argv
[
0
])
self
.
cdist_type
=
core
.
CdistType
(
self
.
type_base_path
,
self
.
type_name
)
...
...
Write
Preview
Markdown
is supported
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