Remove some low-hanging TODOs (#6839)
This commit is contained in:
@ -19,9 +19,7 @@ __cloud_GetRegion() {
|
||||
echo "$region"
|
||||
}
|
||||
|
||||
# sshPrivateKey should be globally defined whenever this function is called.
|
||||
#
|
||||
# TODO: Remove usage of the sshPrivateKey global
|
||||
# Note: sshPrivateKey should be globally defined whenever this function is called.
|
||||
__cloud_SshPrivateKeyCheck() {
|
||||
# shellcheck disable=SC2154
|
||||
if [[ -z $sshPrivateKey ]]; then
|
||||
@ -174,8 +172,8 @@ cloud_CreateInstances() {
|
||||
#
|
||||
# Custom Ubuntu 18.04 LTS image with CUDA 9.2 and CUDA 10.0 installed
|
||||
#
|
||||
# TODO: Unfortunately these AMIs are not public. When this becomes an issue,
|
||||
# use the stock Ubuntu 18.04 image and programmatically install CUDA after the
|
||||
# Unfortunately these AMIs are not public. When this becomes an issue, use
|
||||
# the stock Ubuntu 18.04 image and programmatically install CUDA after the
|
||||
# instance boots
|
||||
#
|
||||
case $region in
|
||||
@ -287,9 +285,10 @@ cloud_CreateInstances() {
|
||||
IFS=: read -r instanceId publicIp privateIp zone < <(echo "${instances[0]}")
|
||||
(
|
||||
set -x
|
||||
# TODO: Poll that the instance has moved to the 'running' state instead of
|
||||
# blindly sleeping for 30 seconds...
|
||||
# It would be better to poll that the instance has moved to the 'running'
|
||||
# state instead of blindly sleeping for 30 seconds...
|
||||
sleep 30
|
||||
|
||||
declare region=
|
||||
region=$(__cloud_GetRegion "$zone")
|
||||
aws ec2 associate-address \
|
||||
|
Reference in New Issue
Block a user