Closed ilium007 closed 6 years ago
I have found the issue.
In the "save_to_config_export" method you are mutating the all_vms list within the loop that is iterating over all_vms. Once the list has been mutated the loop exits hence after the first match the call to "all_vms.remove(vm)" causes the loop to exit.
This line is not required and when commented out the code works as expected.
Submitting a pull request now for this.
I have reviewed this and can verify the issue as well as the fix. I am in the process of performing some additional testing and plan to incorporate this update into the next minor release. Thank you for your contribution. --Tobias
I hope to have a fixed release of this out soon and have been doing some testing. Thank you for your patience. --Tobias
Fixed and incorporated into V3.2.
The vm-export regex filtering is not working for me.
I have two VM's:
In the config file I can specify:
and I will get the Windows server
and:
and I will get the Ubuntu host
but if I specify:
I only get the Ubuntu one in the script output.
If I specify them separately in the config file like below:
I see both in the script output:
I expect that when I use the following I should get both hosts marked for backups: