Closed bdrx312 closed 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!
The import boto
was removed but the boto library still has to be installed because of https://github.com/saltstack/salt/blob/3e60827193b40e9ec6639ef0205437c47dc0e550/salt/utils/boto3mod.py#L66
has_boto = salt.utils.versions.check_boto_reqs()
This needs to be changed to
has_boto = salt.utils.versions.check_boto_reqs(check_boto=False)
Description
The boto3mod utils module imports the old boto module (https://github.com/saltstack/salt/blob/998cb0f951f32f79917109f95edcb5d3cee83cec/salt/utils/boto3mod.py#L41) and not just boto3 and botocore modules. This therefore requires boto (not just boto3) to be installed to use the boto3_ specific execution modules like boto3_sns (https://github.com/saltstack/salt/blob/master/salt/modules/boto3_sns.py), boto3_route53 (https://github.com/saltstack/salt/blob/master/salt/modules/boto3_route53.py), boto3_elasticsearch (https://github.com/saltstack/salt/blob/master/salt/modules/boto3_elasticsearch.py), and boto3_elasticache (https://github.com/saltstack/salt/blob/master/salt/modules/boto3_elasticache.py) since they use
__utils__["boto3.assign_funcs"]
Setup
yum install salt-minion
/usr/bin/pip3 install boto3
master_type: disable
andfile_client: local
Steps to Reproduce the behavior
salt-call --local -l debug boto3_elasticsearch.describe_elasticsearch_domains
Expected behavior
boto3_elasticsearch
__virtual__
should returnTrue
since only boto3 should be required and not boto There should not be aKeyError
callingboto3.assign_funcs
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ```yaml Salt Version: Salt: 3004.1 ```