Skip to content

Commit 7fe60a8

Browse files
committed
Fix AWSNativeSDKInit interface so that users can call the status PreventAwsEC2MetadataCalls with default parameters
Signed-off-by: AMZN-Gene <[email protected]>
1 parent 373f177 commit 7fe60a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Code/Tools/AWSNativeSDKInit/include/AWSNativeSDKInit/AWSNativeSDKInit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace AWSNativeSDKInit
5454
//! Note: This is a helper function for managing the environment variable, AWS_EC2_METADATA_DISABLED, but impacts just the current application's environment.
5555
//! @param force If true, always set AWS_EC2_METADATA_DISABLED to true, otherwise only set if environment variable is not set.
5656
//! @returns True if env var was set or currently prevents calls, False otherwise
57-
static bool PreventAwsEC2MetadataCalls(bool force);
57+
static bool PreventAwsEC2MetadataCalls(bool force = false);
5858

5959
private:
6060
void InitializeAwsApiInternal();

Code/Tools/AWSNativeSDKInit/source/AWSNativeSDKInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace AWSNativeSDKInit
8585
#endif // #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
8686
}
8787

88-
bool InitializationManager::PreventAwsEC2MetadataCalls(bool force = false)
88+
bool InitializationManager::PreventAwsEC2MetadataCalls(bool force)
8989
{
9090
bool prevented = false;
9191
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)

0 commit comments

Comments
 (0)