forked from ungleich-public/cdist
integrate messaging into gencode, manifest
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
edec2abb1d
commit
2f842d56eb
3 changed files with 19 additions and 11 deletions
|
|
@ -104,7 +104,8 @@ class Code(object):
|
|||
'__object_id': cdist_object.object_id,
|
||||
'__object_name': cdist_object.name,
|
||||
})
|
||||
return self.local.run_script(script, env=env, return_output=True)
|
||||
message_prefix=cdist_object.name
|
||||
return self.local.run_script(script, env=env, return_output=True, message_prefix=message_prefix)
|
||||
|
||||
def run_gencode_local(self, cdist_object):
|
||||
"""Run the gencode-local script for the given cdist object."""
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@ class Manifest(object):
|
|||
if not os.path.isfile(initial_manifest):
|
||||
raise NoInitialManifestError(initial_manifest, user_supplied)
|
||||
|
||||
self.local.run_script(initial_manifest, env=self.env_initial_manifest(initial_manifest))
|
||||
message_prefix="initialmanifest"
|
||||
self.local.run_script(initial_manifest, env=self.env_initial_manifest(initial_manifest), message_prefix=message_prefix)
|
||||
|
||||
def env_type_manifest(self, cdist_object):
|
||||
type_manifest = os.path.join(self.local.type_path, cdist_object.cdist_type.manifest_path)
|
||||
|
|
@ -141,5 +142,6 @@ class Manifest(object):
|
|||
|
||||
def run_type_manifest(self, cdist_object):
|
||||
type_manifest = os.path.join(self.local.type_path, cdist_object.cdist_type.manifest_path)
|
||||
message_prefix = cdist_object.name
|
||||
if os.path.isfile(type_manifest):
|
||||
self.local.run_script(type_manifest, env=self.env_type_manifest(cdist_object))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue