(patch_file, options=None, dry_run=False)
| 7865 | return result |
| 7866 | |
| 7867 | def _patch(patch_file, options=None, dry_run=False): |
| 7868 | patch_opts = copy.copy(sanitized_options) |
| 7869 | if options is not None: |
| 7870 | patch_opts.extend(options) |
| 7871 | return __salt__["file.patch"]( |
| 7872 | name, patch_file, options=patch_opts, dry_run=dry_run |
| 7873 | ) |
| 7874 | |
| 7875 | if reject_file is not None: |
| 7876 | patch_rejects = reject_file |