This commit is contained in:
hong-revo 2018-12-22 02:12:14 +11:00
Родитель 11a3a1785f
Коммит 30e0a93f62
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -314,14 +314,14 @@ private=list(
if(wait) if(wait)
{ {
message("Waiting for provisioning to complete") message("Waiting for provisioning to complete")
for(i in 1:1000) # some resources can take a long time to provision (AKS) for(i in 1:1000) # some resources can take a long time to provision (AKS, Kusto)
{ {
message(".", appendLF=FALSE) Sys.sleep(5)
res <- private$res_op() res <- private$res_op()
status <- res$properties$provisioningState status <- res$properties$provisioningState
if(status %in% c("Succeeded", "Error", "Failed")) if(status %in% c("Succeeded", "Error", "Failed"))
break break
Sys.sleep(5) message(".", appendLF=FALSE)
} }
if(status == "Succeeded") if(status == "Succeeded")
message("\nDeployment successful") message("\nDeployment successful")