salt icon indicating copy to clipboard operation
salt copied to clipboard

[BUG] boto3mod requires boto

Open bdrx312 opened this issue 1 year ago • 0 comments

Description

The old boto library is still required to be installed to use boto3mod utils module although #63135 attempted to fix #62672; the boto library is still required because of https://github.com/saltstack/salt/blob/3e60827193b40e9ec6639ef0205437c47dc0e550/salt/utils/boto3mod.py#L66

This needs to be changed to

has_boto = salt.utils.versions.check_boto_reqs(check_boto=False)

Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)

Please be as specific as possible and give set-up details.

  • [ ] AWS ec2 instance running RHEL 8.10
  • [ ] Install salt-minion yum install salt-minion
  • [ ] Install boto3 and botocore but not boto salt-pip install boto3
  • [ ] Configure host for masterless: in /etc/salt/minion set master_type: disable and file_client: local

Steps to Reproduce the behavior

salt-call --local -l debug boto3_elasticsearch.describe_elasticsearch_domains

Expected behavior

boto3_elasticsearch __virtual__ should return True since only boto3 should be required and not boto

Versions Report

Salt Version:
  Salt: 3007.1

bdrx312 avatar Aug 15 '24 02:08 bdrx312