File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,10 +217,6 @@ async function assignIP() {
217217 ) ;
218218 return ;
219219 }
220- const assignmentTimeout = parseInt (
221- core . getInput ( "floating-ip-assignment-timeout" ) ,
222- 10
223- ) ;
224220
225221 const parsedIPId = parseInt ( floatingIPId , 10 ) ;
226222 if ( isNaN ( parsedIPId ) ) {
@@ -251,8 +247,18 @@ async function assignIP() {
251247
252248 if ( res . status === 201 ) {
253249 const body = await res . json ( ) ;
250+ core . info (
251+ `Successfully created assignment action for IP "${ parsedIPId } " and SERVER_ID "${ SERVER_ID } "`
252+ ) ;
254253
255254 const expectedStatus = "success" ;
255+ const assignmentTimeout = parseInt (
256+ core . getInput ( "floating-ip-assignment-timeout" ) ,
257+ 10
258+ ) ;
259+ core . info (
260+ `Attempting to get the status of the assignment process with expected status: "${ expectedStatus } " and timeout: "${ assignmentTimeout } "`
261+ ) ;
256262 let _status ;
257263 try {
258264 _status = await periodicExecution (
@@ -261,6 +267,7 @@ async function assignIP() {
261267 assignmentTimeout
262268 ) ;
263269 } catch ( err ) {
270+ core . error ( err . toString ( ) ) ;
264271 if ( err instanceof TimeoutError ) {
265272 _status = "timeout" ;
266273 } else {
Original file line number Diff line number Diff line change @@ -222,10 +222,6 @@ async function assignIP() {
222222 ) ;
223223 return ;
224224 }
225- const assignmentTimeout = parseInt (
226- core . getInput ( "floating-ip-assignment-timeout" ) ,
227- 10
228- ) ;
229225
230226 const parsedIPId = parseInt ( floatingIPId , 10 ) ;
231227 if ( isNaN ( parsedIPId ) ) {
@@ -256,8 +252,18 @@ async function assignIP() {
256252
257253 if ( res . status === 201 ) {
258254 const body = await res . json ( ) ;
255+ core . info (
256+ `Successfully created assignment action for IP "${ parsedIPId } " and SERVER_ID "${ SERVER_ID } "`
257+ ) ;
259258
260259 const expectedStatus = "success" ;
260+ const assignmentTimeout = parseInt (
261+ core . getInput ( "floating-ip-assignment-timeout" ) ,
262+ 10
263+ ) ;
264+ core . info (
265+ `Attempting to get the status of the assignment process with expected status: "${ expectedStatus } " and timeout: "${ assignmentTimeout } "`
266+ ) ;
261267 let _status ;
262268 try {
263269 _status = await periodicExecution (
@@ -266,6 +272,7 @@ async function assignIP() {
266272 assignmentTimeout
267273 ) ;
268274 } catch ( err ) {
275+ core . error ( err . toString ( ) ) ;
269276 if ( err instanceof TimeoutError ) {
270277 _status = "timeout" ;
271278 } else {
Original file line number Diff line number Diff line change @@ -188,10 +188,6 @@ async function assignIP() {
188188 ) ;
189189 return ;
190190 }
191- const assignmentTimeout = parseInt (
192- core . getInput ( "floating-ip-assignment-timeout" ) ,
193- 10
194- ) ;
195191
196192 const parsedIPId = parseInt ( floatingIPId , 10 ) ;
197193 if ( isNaN ( parsedIPId ) ) {
@@ -222,8 +218,18 @@ async function assignIP() {
222218
223219 if ( res . status === 201 ) {
224220 const body = await res . json ( ) ;
221+ core . info (
222+ `Successfully created assignment action for IP "${ parsedIPId } " and SERVER_ID "${ SERVER_ID } "`
223+ ) ;
225224
226225 const expectedStatus = "success" ;
226+ const assignmentTimeout = parseInt (
227+ core . getInput ( "floating-ip-assignment-timeout" ) ,
228+ 10
229+ ) ;
230+ core . info (
231+ `Attempting to get the status of the assignment process with expected status: "${ expectedStatus } " and timeout: "${ assignmentTimeout } "`
232+ ) ;
227233 let _status ;
228234 try {
229235 _status = await periodicExecution (
@@ -232,6 +238,7 @@ async function assignIP() {
232238 assignmentTimeout
233239 ) ;
234240 } catch ( err ) {
241+ core . error ( err . toString ( ) ) ;
235242 if ( err instanceof TimeoutError ) {
236243 _status = "timeout" ;
237244 } else {
You can’t perform that action at this time.
0 commit comments