Open japtain-cack opened 1 year ago
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
boto3.assign_funcs
seems like we are using to boto somewhere.
I've also just discovered, boto3_route53
is requiring boto as well.
Unless you install boto
, we get the following error:
boto3_route53' __virtual__ returned False: boto3_route53 module could not be loaded
Salt version is latest. 3006.5.
Description Custom execution module using boto3, specifically
boto3.assign_funcs
, requires boto, despite not having any boto dependencies.Setup
Create a custom module,
boto3_rds
for example, and add the following code. Install only boto3 onto the minion.Run the example command in the docstring to test.
Steps to Reproduce the behavior Use above code blocks, add as custom module in
/srv/salt/_modules
, then run the example command in thedescribe_db_clusters
function, targeting a minion with boto3 installed. Ensure no boto package is installed.Expected behavior Salt is using Python3.x and python2.x packages/libraries should be deprecated and no longer needed, except in special circumstances.
Screenshots N/A
Versions Report
Salt master/minion are similar in OS/Platform, packages, and versions.
Additional context This module code is basically a copy of the
boto_rds
module, with a new function added. So I assume the issue is present in any boto_* module as well.If you don't have boto installed, you will get the following error.
As soon as you install boto, the custom module no longer produces an error.