File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ function createVm(name, callback) {
3939 apt-get update
4040 apt-get install -y apache2
4141 cat <<EOF > /var/www/html/index.html
42- <html><body><h1>Hello World</h1 >
43- <p>This page was created from a simple start up script!</p >
44- </body></html >` ,
42+ <!doctype html >
43+ <h1>Hello World</h1 >
44+ <p>This page was created from a simple start-up script!</p >` ,
4545 } ,
4646 ] ,
4747 } ,
@@ -62,8 +62,8 @@ function createVm(name, callback) {
6262 const metadata = data [ 0 ] ;
6363
6464 // External IP of the VM.
65- const ip = metadata [ ' networkInterfaces' ] [ 0 ] [ ' accessConfigs' ] [ 0 ] [ ' natIP' ] ;
66- console . log ( ' Booting new VM with IP http://' + ip + ' ...' ) ;
65+ const ip = metadata . networkInterfaces [ 0 ] . accessConfigs [ 0 ] . natIP ;
66+ console . log ( ` Booting new VM with IP http://${ ip } ...` ) ;
6767
6868 // Ping the VM to determine when the HTTP server is ready.
6969 let waiting = true ;
You can’t perform that action at this time.
0 commit comments