Merge branch 'master' into run-explorers-in-cdist.core.explorer
This commit is contained in:
commit
9588c5189c
1 changed files with 5 additions and 4 deletions
|
@ -144,10 +144,11 @@ class Explorer(object):
|
||||||
|
|
||||||
def transfer_object_parameters(self, cdist_object):
|
def transfer_object_parameters(self, cdist_object):
|
||||||
"""Transfer the parameters for the given object to the remote side."""
|
"""Transfer the parameters for the given object to the remote side."""
|
||||||
source = os.path.join(self.local.object_path, cdist_object.parameter_path)
|
if cdist_object.parameters:
|
||||||
destination = os.path.join(self.remote.object_path, cdist_object.parameter_path)
|
source = os.path.join(self.local.object_path, cdist_object.parameter_path)
|
||||||
self.remote.mkdir(destination)
|
destination = os.path.join(self.remote.object_path, cdist_object.parameter_path)
|
||||||
self.remote.transfer(source, destination)
|
self.remote.mkdir(destination)
|
||||||
|
self.remote.transfer(source, destination)
|
||||||
|
|
||||||
def run_type_explorer(self, explorer, cdist_object):
|
def run_type_explorer(self, explorer, cdist_object):
|
||||||
"""Run the given type explorer for the given object and return it's output."""
|
"""Run the given type explorer for the given object and return it's output."""
|
||||||
|
|
Loading…
Reference in a new issue