mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
F #6063: Backup Jobs for OpenNebula
Includes the following changes:
- xml-schema for Backup Job and Scheduled Actions
- GO, Java api
- Deprecate onevm update-chart, delete-chart
* The commands are replaced by sched-update and sched-delete
* Refactor method deprecate_command, it's still possible to run the
command
* Delete 'shutdown' and 'delete' commands deprecated years ago
* Fix --verbose option for sched-update and sched-delete
- Re-implementation of scheduled actions, now are managed and executed
by oned
- Backup Job objects, API, and CLI commands
This commit is contained in:
116 files changed
+8303
-2562
No files matched your search
@@ -129,6 +129,32 @@ int ObjectCollection::del(int id)
|
||||
return 0;
|
||||
};
|
||||
|
||||
int ObjectCollection::del_not_present(const ObjectCollection& base)
|
||||
{
|
||||
int removed = 0;
|
||||
|
||||
if ( collection_set.size() == 0 )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (auto it = collection_set.begin(); it != collection_set.end(); )
|
||||
{
|
||||
if ( base.contains(*it) )
|
||||
{
|
||||
++it;
|
||||
}
|
||||
else
|
||||
{
|
||||
it = collection_set.erase(it);
|
||||
|
||||
removed++;
|
||||
}
|
||||
}
|
||||
|
||||
return removed;
|
||||
};
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
Reference in new issue
Block a user