Sets session interval from 60 seconds to a higher value to avoid problems with cache

This commit is contained in:
Dani Estevez 2018-05-11 11:57:25 -04:00 committed by Ignasi Barrera
parent 8228994850
commit a08de5b2f1
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
package org.jclouds.azurecompute.arm;
import static org.jclouds.Constants.PROPERTY_MAX_RATE_LIMIT_WAIT;
import static org.jclouds.Constants.PROPERTY_SESSION_INTERVAL;
import static org.jclouds.azurecompute.arm.config.AzureComputeProperties.API_VERSION_PREFIX;
import static org.jclouds.azurecompute.arm.config.AzureComputeProperties.DEFAULT_SUBNET_ADDRESS_PREFIX;
import static org.jclouds.azurecompute.arm.config.AzureComputeProperties.DEFAULT_VNET_ADDRESS_SPACE_PREFIX;
@ -90,6 +91,7 @@ public class AzureComputeProviderMetadata extends BaseProviderMetadata {
properties.put(TIMEOUT_NODE_TERMINATED, 60 * 10 * 1000);
// Default max wait in rate limit: 5m30s
properties.put(PROPERTY_MAX_RATE_LIMIT_WAIT, 330000);
properties.put(PROPERTY_SESSION_INTERVAL, 300);
properties.put(RESOURCE, "https://management.azure.com/");
properties.put(CREDENTIAL_TYPE, CLIENT_CREDENTIALS_SECRET.toString());
// Set a default Oauth endpoint for Azure, fill in the tenantId based on the value supplied