deployvm : Sending a refresh in case autogen hasn't picked up the new VM

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
davidjumani 2020-08-27 16:08:03 +05:30 committed by Rohit Yadav
parent d383490095
commit 52a820541f
1 changed files with 4 additions and 0 deletions

View File

@ -1402,6 +1402,10 @@ export default {
status: 'progress'
})
}
// Sending a refresh in case it hasn't picked up the new VM
new Promise(resolve => setTimeout(resolve, 3000)).then(() => {
eventBus.$emit('vm-refresh-data')
})
this.$router.back()
}).catch(error => {
this.$notifyError(error)