From 543615518d1f4f88f044b8d0b7307172ac138ce4 Mon Sep 17 00:00:00 2001 From: Jobin George Date: Mon, 16 Sep 2019 16:13:48 +0530 Subject: [PATCH] Re-organise imports for DRaaS Samples Signed-off-by: Jobin George --- samples/vmc/draas/deploy_additional_instance.py | 11 +++++------ samples/vmc/draas/site_recovery_activation_ops.py | 6 +++--- samples/vmc/draas/site_recovery_info.py | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/samples/vmc/draas/deploy_additional_instance.py b/samples/vmc/draas/deploy_additional_instance.py index 32e75dc8..c2570664 100644 --- a/samples/vmc/draas/deploy_additional_instance.py +++ b/samples/vmc/draas/deploy_additional_instance.py @@ -14,14 +14,13 @@ """ __author__ = 'VMware, Inc.' -from samples.vmc.helpers.sample_cli import parser, optional_args - -from vmware.vapi.vmc.client import create_vmc_client -from com.vmware.vmc.draas.model_client import ProvisionSrmConfig -from com.vmware.vmc.draas.model_client import ErrorResponse - from com.vmware.vapi.std.errors_client import InvalidRequest +from com.vmware.vmc.draas.model_client import ErrorResponse +from com.vmware.vmc.draas.model_client import ProvisionSrmConfig +from vmware.vapi.vmc.client import create_vmc_client + from samples.vmc.draas.helpers.draas_task_helper import wait_for_task +from samples.vmc.helpers.sample_cli import parser, optional_args class DeployAdditionalInstance(object): diff --git a/samples/vmc/draas/site_recovery_activation_ops.py b/samples/vmc/draas/site_recovery_activation_ops.py index 9d5a4565..31296a2a 100644 --- a/samples/vmc/draas/site_recovery_activation_ops.py +++ b/samples/vmc/draas/site_recovery_activation_ops.py @@ -14,12 +14,12 @@ """ __author__ = 'VMware, Inc.' -from vmware.vapi.vmc.client import create_vmc_client -from com.vmware.vmc.draas.model_client import ErrorResponse from com.vmware.vapi.std.errors_client import InvalidRequest +from com.vmware.vmc.draas.model_client import ErrorResponse +from vmware.vapi.vmc.client import create_vmc_client -from samples.vmc.helpers.sample_cli import parser, optional_args from samples.vmc.draas.helpers.draas_task_helper import wait_for_task +from samples.vmc.helpers.sample_cli import parser, optional_args class SiteRecoveryActivationOperations(object): diff --git a/samples/vmc/draas/site_recovery_info.py b/samples/vmc/draas/site_recovery_info.py index 81a3f096..125ff664 100644 --- a/samples/vmc/draas/site_recovery_info.py +++ b/samples/vmc/draas/site_recovery_info.py @@ -13,10 +13,10 @@ * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. """ -from samples.vmc.helpers.sample_cli import parser - from vmware.vapi.vmc.client import create_vmc_client +from samples.vmc.helpers.sample_cli import parser + class VmcSiteRecoveryInfo(object): """