Skip to content

Commit 465a6e6

Browse files
committed
Fix some log messages for AWS
Use AMI instead of image where relevant as AWS uses AMI. Signed-off-by: Pradipta Banerjee <[email protected]> (cherry picked from commit 9c111b3)
1 parent c661d6f commit 465a6e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/peerpods/podvm/aws-podvm-image-handler.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function create_ami_using_packer() {
153153
# Function to get the ami id of the newly created image
154154

155155
function get_ami_id() {
156-
echo "Getting the image id"
156+
echo "Getting the ami id"
157157

158158
# Get the ami id of the newly created image
159159
# If any error occurs, exit the script with an error message
@@ -162,7 +162,7 @@ function get_ami_id() {
162162
AMI_ID=$(aws ec2 describe-images --region "${AWS_REGION}" --filters "Name=name,Values=${AMI_NAME}" --query 'Images[*].ImageId' --output text) ||
163163
error_exit "Failed to get the ami id"
164164

165-
# Set the image id as an environment variable
165+
# Set the ami id as an environment variable
166166
export AMI_ID
167167

168168
echo "ID of the newly created ami: ${AMI_ID}"
@@ -181,7 +181,7 @@ function get_all_ami_ids() {
181181
AMI_ID_LIST=$(aws ec2 describe-images --region "${AWS_REGION}" --filters "Name=name,Values=${AMI_BASE_NAME}-*" --query 'Images[*].ImageId' --output text) ||
182182
error_exit "Failed to get the ami id list"
183183

184-
# Set the image id list as an environment variable
184+
# Set the ami id list as an environment variable
185185
export AMI_ID_LIST
186186

187187
# Display the list of amis
@@ -190,7 +190,7 @@ function get_all_ami_ids() {
190190
}
191191

192192
# Function to create or update podvm-images configmap with all the amis
193-
# Input AMI_ID_LIST is a list of image ids
193+
# Input AMI_ID_LIST is a list of ami ids
194194

195195
function create_or_update_image_configmap() {
196196
echo "Creating or updating podvm-images configmap"

0 commit comments

Comments
 (0)