projects
/
osm
/
vim-emu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix: Fixed a lot of small things in the README.md
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
openstack
/
helper.py
1
from
urlparse
import
urlparse
2
import
logging
3
4
LOG
=
logging
.
getLogger
(
"api.openstack.helper"
)
5
6
def
get_host
(
r
):
7
try
:
8
return
urlparse
(
r
.
base_url
).
hostname
9
except
:
10
LOG
.
error
(
"Could not get host part of request URL."
)
11
return
"0.0.0.0"