hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
989 stars 497 forks source link

more robust json generation #110

Open divinity76 opened 10 months ago

divinity76 commented 10 months ago

concatenating strings into json is... unreliable.

I think the original code was written that way because definedTags and freeformTags must be object, not array, or be rejected as invalid, and by default json_encode makes them array, not object, the original code fixed it by writing the json manually, the new code fix it with 'definedTags' =>(object)array()

divinity76 commented 10 months ago

this patch is now confirmed to work :D i just got my server yesterday with this patch