Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add and fix technical solution #215

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions documents/help/ecs/configure-IPv6-address-for-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Parameters:
Type: String
NoEcho: true
Default: null
Confirm: true
Description:
en: >-
Server login password, Length 8-30, must contain three(Capital letters,
Expand Down Expand Up @@ -400,16 +401,16 @@ Resources:
}

function log_info() {
printf "$(date '+%Y-%m-%d %H:%M:%S') [INFO] $1\n"
printf "%s [INFO] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1"
}

function log_error() {
printf "$(date '+%Y-%m-%d %H:%M:%S') [ERROR] $1\n"
printf "%s [ERROR] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1"
}

function log_fatal() {
printf "\n========================================================================\n"
printf "$(date '+%Y-%m-%d %H:%M:%S') [FATAL] $2."
printf "%s [FATAL] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1"
printf "\n========================================================================\n"
exit $1
}
Expand Down Expand Up @@ -561,7 +562,10 @@ Resources:
- Ref: Ipv6AddressId
Ipv6InternetBandwidth:
Fn::Equals:
- ""
- Fn::If:
- AssignIpv6Addresses
- null
- ""
- Ref: Ipv6InternetBandwidthId
Resources:
OpenIPv6ForVpc:
Expand Down
6 changes: 3 additions & 3 deletions documents/solution/ai/exclusive-qa-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,16 @@ Resources:
}

function log_info() {
printf "$(date '+%Y-%m-%d %H:%M:%S') [INFO] $1\n"
printf "%s [INFO] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1"
}

function log_error() {
printf "$(date '+%Y-%m-%d %H:%M:%S') [ERROR] $1\n"
printf "%s [ERROR] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1"
}

function log_fatal() {
printf "\n========================================================================\n"
printf "$(date '+%Y-%m-%d %H:%M:%S') [FATAL] $2."
printf "%s [FATAL] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$2"
printf "\n========================================================================\n"
exit $1
}
Expand Down
Loading
Loading