From bf397837a4cafe3122eb34874ce9740bd02b3ed6 Mon Sep 17 00:00:00 2001 From: M3g4lodon Date: Tue, 5 May 2020 11:16:08 +0200 Subject: [PATCH] Remove Instance name verification --- mindsay_sdk/client.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mindsay_sdk/client.py b/mindsay_sdk/client.py index b385a35..30f0547 100644 --- a/mindsay_sdk/client.py +++ b/mindsay_sdk/client.py @@ -11,8 +11,6 @@ import requests -from mindsay_sdk import utils - logging.basicConfig( format="%(asctime)-25s %(levelname)-8s logger=%(name)-8s event=%(message)s", stream=sys.stdout, @@ -157,11 +155,6 @@ def get_instance(self, instance_id: int) -> dict: def set_current_instance(self, instance_id: int) -> Dict[str, Any]: """Set the instance for next operations""" - if self.production: - instance = self.get_instance(instance_id) - utils.verify_prompt( - "Enter your instance name to confirm: ", instance["name"] - ) response = self.post( "environment/set_current_instance", json={"instance_id": instance_id} )