Set endpoint_type = internal by default for nova requests
Closes-Bug: PROD-35257
Change-Id: I57d582d1626b069c33252bdb5105ffb3b33f8fbd
diff --git a/_modules/novang.py b/_modules/novang.py
index 791e185..dbfc297 100644
--- a/_modules/novang.py
+++ b/_modules/novang.py
@@ -561,8 +561,13 @@
kstone = __salt__['keystoneng.auth'](profile, **kwargs)
self.session = kstone.session
self.version = str(kwargs.get('version', 2))
- self.compute_conn = client.Client(version=self.version, session=self.session)
- self.volume_conn = client.Client(version=self.version, session=self.session)
+ self.endpoint_type = str(kwargs.get('connection_endpoint_type', 'internal'))
+ self.compute_conn = client.Client(version=self.version,
+ session=self.session,
+ endpoint_type=self.endpoint_type)
+ self.volume_conn = client.Client(version=self.version,
+ session=self.session,
+ endpoint_type=self.endpoint_type)
def expand_extensions(self):
for connection in (self.compute_conn, self.volume_conn):