Prechádzať zdrojové kódy

Merged in aznashwan/coriolis/get-instance-validation (pull request #76)

Made the result of instance detail fetching be validated against the main VM export info schema.
Nashwan Azhari 8 rokov pred
rodič
commit
721c384018
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      coriolis/worker/rpc/server.py

+ 1 - 1
coriolis/worker/rpc/server.py

@@ -196,7 +196,7 @@ class WorkerServerEndpoint(object):
             ctxt, secret_connection_info, instance_name)
             ctxt, secret_connection_info, instance_name)
 
 
         schemas.validate_value(
         schemas.validate_value(
-            instance_info, schemas.CORIOLIS_VM_INSTANCE_INFO_SCHEMA)
+            instance_info, schemas.CORIOLIS_VM_EXPORT_INFO_SCHEMA)
 
 
         return instance_info
         return instance_info