forked from ungleich-public/cdist
implement /__object_fq/__object_name/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
b56925d24a
commit
d6cf85e6f6
2 changed files with 4 additions and 3 deletions
|
@ -105,7 +105,8 @@ class Code(object):
|
|||
'__type': cdist_object.type.absolute_path,
|
||||
'__object': cdist_object.absolute_path,
|
||||
'__object_id': cdist_object.object_id,
|
||||
'__object_fq': cdist_object.path,
|
||||
'__object_name': cdist_object.name,
|
||||
'__self': cdist_object.name,
|
||||
})
|
||||
return self.local.run_script(script, env=env, return_output=True)
|
||||
|
||||
|
|
|
@ -92,10 +92,10 @@ class Manifest(object):
|
|||
env = os.environ.copy()
|
||||
env.update(self.env)
|
||||
env.update({
|
||||
'__self': cdist_object.name,
|
||||
'__object': cdist_object.absolute_path,
|
||||
'__object_id': cdist_object.object_id,
|
||||
'__object_fq': cdist_object.name,
|
||||
'__object_name': cdist_object.name,
|
||||
'__self': cdist_object.name,
|
||||
'__type': cdist_object.type.absolute_path,
|
||||
'__cdist_manifest': script,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue