This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding utf-8 | |
# | |
# Requires an MCX profile with the following (example) format: | |
# | |
# <key>PayloadType</key> | |
# <string>com.apple.ManagedClient.preferences</string> | |
# <key>PayloadContent</key> | |
# <dict> | |
# <key>CustomConfig</key> | |
# <dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
dbclient = boto3.client('dynamodb') | |
def checkdb(build=None, pid=None): | |
if build is not None and pid is not None: | |
r = dbclient.scan(TableName='osbuilds', | |
FilterExpression= | |
'build = :build and productid = :pid', | |
ExpressionAttributeValues={ | |
':build':{'S':build}, |