Execute salt-cp
(
self,
arg_str,
with_retcode=False,
catch_stderr=False,
timeout=None,
config_dir=None,
)
| 228 | ) |
| 229 | |
| 230 | def run_cp( |
| 231 | self, |
| 232 | arg_str, |
| 233 | with_retcode=False, |
| 234 | catch_stderr=False, |
| 235 | timeout=None, |
| 236 | config_dir=None, |
| 237 | ): |
| 238 | """ |
| 239 | Execute salt-cp |
| 240 | """ |
| 241 | if timeout is None: |
| 242 | timeout = self.RUN_TIMEOUT |
| 243 | # Note: not logging result of run_cp because it will log a bunch of |
| 244 | # bytes which will not be very helpful. |
| 245 | return self.run_script( |
| 246 | "salt-cp", |
| 247 | arg_str, |
| 248 | with_retcode=with_retcode, |
| 249 | catch_stderr=catch_stderr, |
| 250 | timeout=timeout, |
| 251 | config_dir=config_dir, |
| 252 | ) |
| 253 | |
| 254 | def run_call( |
| 255 | self, |
nothing calls this directly
no test coverage detected