mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-9627 Fix template sync for region store.When using a region store like Swift or S3 as secondary storage, the `zoneId` can be null. This causes an exception when we try to convert it to a `long`. This fix guards against that. Before this fix, if you restart the management server, all the templates would change to "NOT READY" because the code which syncs the NFS cache and the object store crashes due to the above mentioned issue. This PR fixes that. * pr/1772: CLOUDSTACK-9627:Fix template sync for region store Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>