Closed matiasblancor closed 1 year ago
hi there, I found that M0, M2 and M5 clusters can't be updated by public API, so I update my test cluster to M10 to scale to M20, but I things that are a bug because I now use this code
cluster = atlas.Clusters.get_single_cluster_as_obj(cluster_name).as_modify_dict()
# need to delete de create_date because this gives me the mentioned error
del cluster['create_date']
# need to delete these keys because there are None and the API response with "Bad Request"
del cluster['providerSettings']['volumeType']
del cluster['providerSettings']['encryptEBSVolume']
del cluster['providerSettings']['diskIOPS']
I read on the documentation that ".as_modify_dict()" left the dict ready to be used on modify functions, but the None values broke the execution.
Hi, I am writen a script that changes our Mogo atlas cluster instance size at night, and then changes it again during the day, but when I want to update the instance size this error is logged
TypeError: Object of type datetime is not JSON serializable
this is my code
if someone knows what I'm doing wrong 🙏🏻
python version: 3.10.0 atlasapi version: 2.0.8