mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -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
|
||||
|
||||
|
||||
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
|
||||
if plugin_bin:
|
||||
if os.path.isfile(plugin_bin):
|
||||
valid_plugin_bin = None
|
||||
if plugin_bin and os.path.isfile(plugin_bin):
|
||||
valid_plugin_bin = plugin_bin
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue