implement /__object_fq/__object_name/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 14 years ago
parent b56925d24a
commit d6cf85e6f6
  1. 3
      lib/cdist/core/code.py
  2. 4
      lib/cdist/core/manifest.py

@ -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…
Cancel
Save