Skip to content

Commit

Permalink
Remove Instance name verification
Browse files Browse the repository at this point in the history
  • Loading branch information
M3g4lodon committed May 5, 2020
1 parent adfb79f commit bf39783
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mindsay_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}
)
Expand Down

0 comments on commit bf39783

Please sign in to comment.