#31 bug fix

Merged
cuiyuzhe merged 1 commits from cyz into master 3 months ago
  1. +2
    -2
      app/api_uaa/nexushost_api.py

+ 2
- 2
app/api_uaa/nexushost_api.py View File

@@ -30,8 +30,8 @@ def update_nexushost(nexushost):
g.config.nexus['docker_host'] = nexushost.docker_host
g.config.nexus['docker_port'] = nexushost.docker_port
if g.config.nexus['dockerhub_url'].startswith('http://'):
g.config.nexus['image_prefix'] = g.config.nexus['dockerhub_url'][8:]
g.config.nexus['image_prefix'] = g.config.nexus['dockerhub_url'][7:]
elif g.config.nexus['dockerhub_url'].startswith('https://'):
g.config.nexus['image_prefix'] = g.config.nexus['dockerhub_url'][9:]
g.config.nexus['image_prefix'] = g.config.nexus['dockerhub_url'][8:]

return 0

Loading…
Cancel
Save