-
Notifications
You must be signed in to change notification settings - Fork 249
Support datalab connect() to connect a GCE instance created from Deep… #2112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple of nits.
tools/cli/commands/utils.py
Outdated
@@ -68,7 +68,8 @@ class InvalidInstanceException(Exception): | |||
|
|||
_MESSAGE = ( | |||
'The specified instance, {}, does not appear ' | |||
'to have been created by the `datalab` tool, and ' | |||
'to have been created by the `datalab` tool, or ' | |||
'from any GCE Deeplearning images, and ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the "and"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote it.
tools/cli/commands/utils.py
Outdated
@@ -240,22 +241,35 @@ def flatten_metadata(metadata): | |||
return result | |||
|
|||
|
|||
def _check_datalab_tag(instance, tags): | |||
def _check_datalab_tag(instance, status_tags_and_metadata): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also rename the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks, qimingj. PTAL |
There is a test failure. I just reran it and see if it is just flaky. |
tools/cli/commands/utils.py
Outdated
'so cannot be managed by it.') | ||
'to have been created by the `datalab` tool, or ' | ||
'from any GCE Deeplearning images. Therefore it ' | ||
'so cannot be managed by `datalab` tool.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "so " here is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Can you grant me the write access to the repo? Thanks!
…learning images