autopkg-recipes's Issues
Issue with Microsoft Recipes
Don't personally use your Microsoft recipes, but had your repo added and recently started getting a bunch of errors related to them as invalid plists.
A glance reveals that the first line of your recipes are blank, so thinking it's possibly that simple?
ValueError: too many values to unpack (expected 2) when using SlackPostCurl PostProcessor
I'm trying out the new SlackPostCurl PostProcessor, and so far it is working but reports an error for each successful Slack post.
Both AutoPkg 2.7 (with Python 3.10) and AutoPkg 2.4.1 (with Python 3.7) have this error. I'm using the PostProcessor as is, with no edits.
To test, I ran an AutoPkg recipe from Terminal (my slack webhook is redacted):
$ autopkg run -vvv Skype.munki --post="com.github.notverypc.autopkg-recipes.postprocessors/SlackPostCurl" --key "webhook_url"="https://hooks.slack.com/services/123456789/123456789/123456789"
A Skype update was available, so it was downloaded and added to my repo. I received a Slack post:
In Terminal at the end of the AutoPkg run was this error:
'munki_repo_changed': True,
'webhook_url': 'https://hooks.slack.com/services/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'}}
SlackPostCurl: No value supplied for slack_icon_url, setting default value of:
SlackPostCurl: No value supplied for slack_username, setting default value of: AutoPKG
SlackPostCurl: Slack webhook post attempt 1
Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 1016, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 802, in process
self.main()
File "/Users/shorty/Library/AutoPkg/RecipeRepos/com.github.notverypc.autopkg-recipes/PostProcessors/SlackPostCurl.py", line 142, in main
) = self.execute_curl(curl_cmd)
ValueError: too many values to unpack (expected 2)
File "/Library/AutoPkg/autopkglib/__init__.py", line 1016, in process
self.env = processor.process()
too many values to unpack (expected 2)
Failed.
Receipt written to /Users/shorty/Library/AutoPkg/Cache/local.munki.Skype/receipts/Skype-receipt-20220901-160005.plist
The following recipes failed:
Skype.munki
Error in local.munki.Skype: Processor: com.github.notverypc.autopkg-recipes.postprocessors/SlackPostCurl: Error: too many values to unpack (expected 2)
Despite the error, Skype was added to the repo.
I also use autopkg-conductor.sh set up with SlackPostCurl for timed runs, which does error collecting to post to Slack at the end of a recipe list run. The same error gets reported to Slack like this:
Full AutoPkg run results attached:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.