mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-31 03:44:35 +00:00
fix(kubevirt): comment typo
Fix a small comment typo showing `LoadBalancer` instead of `NodePort`. Signed-off-by: Javier Cano Cano <jcanocan@redhat.com>
This commit is contained in:
@@ -317,7 +317,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||||||
if service["spec"]["type"] == TYPE_LOADBALANCER:
|
if service["spec"]["type"] == TYPE_LOADBALANCER:
|
||||||
return service["spec"]["ports"][0]["port"]
|
return service["spec"]["ports"][0]["port"]
|
||||||
|
|
||||||
# LoadBalancer services use the nodePort attribute
|
# NodePort services use the nodePort attribute
|
||||||
if service["spec"]["type"] == TYPE_NODEPORT:
|
if service["spec"]["type"] == TYPE_NODEPORT:
|
||||||
return service["spec"]["ports"][0]["nodePort"]
|
return service["spec"]["ports"][0]["nodePort"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user