|
|
@ -97,7 +97,7 @@ class Code(object): |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
""" |
|
|
|
# target_host is tuple (target_host, target_hostname, target_fqdn) |
|
|
|
# target_host is tuple (target_host, target_hostname, target_fqdn) |
|
|
|
def __init__(self, target_host, local, remote): |
|
|
|
def __init__(self, target_host, local, remote, dry_run=False): |
|
|
|
self.target_host = target_host |
|
|
|
self.target_host = target_host |
|
|
|
self.local = local |
|
|
|
self.local = local |
|
|
|
self.remote = remote |
|
|
|
self.remote = remote |
|
|
@ -113,6 +113,9 @@ class Code(object): |
|
|
|
local.log), |
|
|
|
local.log), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if dry_run: |
|
|
|
|
|
|
|
self.env['__cdist_dry_run'] = '1' |
|
|
|
|
|
|
|
|
|
|
|
def _run_gencode(self, cdist_object, which): |
|
|
|
def _run_gencode(self, cdist_object, which): |
|
|
|
cdist_type = cdist_object.cdist_type |
|
|
|
cdist_type = cdist_object.cdist_type |
|
|
|
script = os.path.join(self.local.type_path, |
|
|
|
script = os.path.join(self.local.type_path, |
|
|
|