Use the passed name argument in remove_dnsha
This appears to be a typo, where self.service_name was used in the same way as seen in other methods, but self.service_name is not defined in this class, or any subclasses of it. Instead, let's use the `name` argument that is passed to remove_dnsha, but currently unused. Closes-Bug: #2037515 Change-Id: I12c561057372c11632b2d97fa1763fc92d89f479
This commit is contained in:
parent
f3a72cdc9f
commit
4c1068079f
|
@ -255,7 +255,7 @@ class ResourceManagement():
|
|||
:returns: None
|
||||
"""
|
||||
res_key = 'res_{}_{}_hostname'.format(
|
||||
self.service_name.replace('-', '_'),
|
||||
name.replace('-', '_'),
|
||||
self.endpoint_type)
|
||||
self.delete_resource(res_key)
|
||||
|
||||
|
|
Loading…
Reference in New Issue