mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add check for sv binary (#32250)
* Add check for sv binary This commit adds a check for the sv binary. If the binary is not present then the module will fail. Resolves issue #32248 * Change sv check to suggestion by @bcoca
This commit is contained in:
parent
9cff2c376b
commit
4a19482413
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class Sv(object):
|
|||
self.pid = None
|
||||
self.duration = None
|
||||
|
||||
self.svc_cmd = module.get_bin_path('sv', opt_dirs=self.extra_paths)
|
||||
self.svc_cmd = module.get_bin_path('sv', opt_dirs=self.extra_paths, required=True)
|
||||
self.svstat_cmd = module.get_bin_path('sv', opt_dirs=self.extra_paths)
|
||||
self.svc_full = '/'.join([ self.service_dir, self.name ])
|
||||
self.src_full = '/'.join([ self.service_src, self.name ])
|
||||
|
|
Loading…
Reference in a new issue