Skip to content

Commit

Permalink
Merge pull request #1 from seenu433/seenu433-patch-1
Browse files Browse the repository at this point in the history
Update enable-monitoring.sh
  • Loading branch information
seenu433 authored Mar 16, 2021
2 parents 91f954f + 38f39a8 commit 45ca855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/onboarding/managed/enable-monitoring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ parse_args() {

validate_and_configure_supported_cloud() {
echo "get active azure cloud name configured to azure cli"
azureCloudName=$(az cloud show --query name -o tsv | tr "[:upper:]" "[:lower:]")
azureCloudName=$(az cloud show --query name -o tsv | tr "[:upper:]" "[:lower:]" | tr -d "[:space:]")
echo "active azure cloud name configured to azure cli: ${azureCloudName}"
if [ "$isArcK8sCluster" = true ]; then
if [ "$azureCloudName" != "azurecloud" -a "$azureCloudName" != "azureusgovernment" ]; then
Expand Down Expand Up @@ -340,7 +340,7 @@ validate_cluster_identity() {
local clusterName="$(echo ${2})"

local identitytype=$(az resource show -g ${rgName} -n ${clusterName} --resource-type $resourceProvider --query identity.type)
identitytype=$(echo $identitytype | tr "[:upper:]" "[:lower:]" | tr -d '"')
identitytype=$(echo $identitytype | tr "[:upper:]" "[:lower:]" | tr -d '"' | tr -d "[:space:]")
echo "cluster identity type:" $identitytype

if [[ "$identitytype" != "systemassigned" ]]; then
Expand Down

0 comments on commit 45ca855

Please sign in to comment.