Save As - return copied datastore object
When a datastore object is copied, return the new object to the caller.
James Cameron
6 years ago
469 | 469 | ds_object -- DSObject to copy |
470 | 470 | mount_point -- mount point of the new datastore entry |
471 | 471 | |
472 | Returns: | |
473 | new_ds_object -- DSObject copied | |
474 | ||
472 | 475 | """ |
473 | 476 | new_ds_object = ds_object.copy() |
474 | 477 | new_ds_object.metadata['mountpoint'] = mount_point |
489 | 492 | |
490 | 493 | write(new_ds_object) |
491 | 494 | |
495 | return new_ds_object | |
496 | ||
492 | 497 | |
493 | 498 | def get_unique_values(key): |
494 | 499 | """Retrieve an array of unique values for a field. |