Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2b12660d
authored
Nov 18, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix Instance.get_connect_host method temporarily
parent
54c5f067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
circle/vm/models.py
+3
-2
No files found.
circle/vm/models.py
View file @
2b12660d
...
@@ -502,10 +502,11 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
...
@@ -502,10 +502,11 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
def
get_connect_host
(
self
,
use_ipv6
=
False
):
def
get_connect_host
(
self
,
use_ipv6
=
False
):
"""Get public hostname.
"""Get public hostname.
"""
"""
if
not
self
.
firewall_host
:
if
not
self
.
interface_set
.
exclude
(
host
=
None
)
:
return
_
(
'None'
)
return
_
(
'None'
)
proto
=
'ipv6'
if
use_ipv6
else
'ipv4'
proto
=
'ipv6'
if
use_ipv6
else
'ipv4'
return
self
.
firewall_host
.
get_hostname
(
proto
=
proto
)
return
self
.
interface_set
.
exclude
(
host
=
None
)[
0
]
.
host
.
get_hostname
(
proto
=
proto
)
def
get_connect_uri
(
self
,
use_ipv6
=
False
):
def
get_connect_uri
(
self
,
use_ipv6
=
False
):
"""Get access parameters in URI format.
"""Get access parameters in URI format.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment