Commit 303b1c2b authored by Antoine Millet's avatar Antoine Millet
Browse files

Target key on vmspec is now optional

parent 43921dda
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ class AllocationJob(Job):
                    # Keep the VM target in a tag for future migrations
                    if 'tags' not in vmspec:
                        vmspec['tags'] = {}
                    if 'target' in vmspec:
                        vmspec['tags'].setdefault('target', vmspec['target'])
                    try:
                        vm_uuid = self._deploy(vmspec, server.get_client(target_hv_name))