Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
fence-agents.8323
0006-fence_compute-Fix-fix_plug_name-when-looki...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-fence_compute-Fix-fix_plug_name-when-looking-if-plug.patch of Package fence-agents.8323
From 0525e0cfb9299c4d3f93fea8e3da785406b6c5d7 Mon Sep 17 00:00:00 2001 From: Vincent Untz <vuntz@suse.com> Date: Wed, 29 Jun 2016 09:51:37 +0200 Subject: [PATCH 6/9] fence_compute: Fix fix_plug_name when looking if plug has domain We shouldn't check if the plug name contains the domain, but if it ends with the domain. --- fence/agents/compute/fence_compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py index d39c053..0cdf685 100644 --- a/fence/agents/compute/fence_compute.py +++ b/fence/agents/compute/fence_compute.py @@ -281,8 +281,8 @@ def fix_plug_name(options): # Ensure any domain is stripped off since nova isn't using FQDN options["--plug"] = short_plug - elif options["--domain"] in options["--plug"]: - # Plug already contains the domain, don't re-add + elif options["--plug"].endswith(options["--domain"]): + # Plug already uses the domain, don't re-add return else: -- 2.10.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor