mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-05 00:31:37 -07:00
parent
7fe6a8dab7
commit
2c8382eb87
1 changed files with 20 additions and 20 deletions
|
@ -196,10 +196,10 @@ def remove_plugin(module, plugin_bin, plugin_name):
|
||||||
return True, cmd, out, err
|
return True, cmd, out, err
|
||||||
|
|
||||||
|
|
||||||
def get_plugin_bin(module, plugin_bin):
|
def get_plugin_bin(module, plugin_bin=None):
|
||||||
# Use the plugin_bin that was supplied first before trying other options
|
# Use the plugin_bin that was supplied first before trying other options
|
||||||
if plugin_bin:
|
valid_plugin_bin = None
|
||||||
if os.path.isfile(plugin_bin):
|
if plugin_bin and os.path.isfile(plugin_bin):
|
||||||
valid_plugin_bin = plugin_bin
|
valid_plugin_bin = plugin_bin
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue