Open vshalchian opened 4 years 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 core@saltstack.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
@vshalchian thanks for the report. Looks like this one is potentially an easy fix, would you be able to provide a PR with the changes? We'll help write some tests for it you need help as well.
@garethgreenaway here is the PR , please let me know if I need to do anything else https://github.com/saltstack/salt/pull/59470
Description
boto_lambda.function_present can create a lambda function successfully however running the same state to update even if there is no change gives the following error :
Setup
Steps to Reproduce the behavior Try to create a simple lambda function using boto_lambda.function_present and run the state again. It always fails if the lambda exists. If you manually remove the lambda and run the state it works. it only fails when tries to update
Expected behavior When I edit the line 520 in /usr/lib/python3.6/site-packages/salt/states/boto_lambda.py and remove encode("base64") salt state works fine both for create and update
Screenshots
Versions Report
salt-minion-3002-1.el7.noarch salt-master-3002-1.el7.noarch
Additional context Add any other context about the problem here.