Add debian packaging for python-osc-lib

Add debian packaging structure for python-osc-lib

Story: 2009101
Task: 43520

Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Change-Id: Ibf79b4939a63a8c740331aa738d46c9d9cb0c6fa
This commit is contained in:
Fabricio Henrique Ramos 2021-10-04 23:19:59 -03:00
parent 20850194ef
commit 5d546e3cee
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
debname: python-osc-lib
debver: 2.2.1-2
dl_path:
name: python-osc-lib-2.2.1-2.tar.gz
url: https://salsa.debian.org/openstack-team/libs/python-osc-lib/-/archive/debian/2.2.1-2/python-osc-lib-debian-2.2.1-2.tar.gz
md5sum: b72d416dd21b369d89c1dc3f8de42705
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

View File

@ -0,0 +1,44 @@
From 76f568a6d94e798d47d044b2abde8b4a3884657e Mon Sep 17 00:00:00 2001
From: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Date: Mon, 4 Oct 2021 23:15:54 -0300
Subject: [PATCH] CGTS-7947: add --os-keystone-region-name option to openstack
The new option only apply to identity client.
---
osc_lib/clientmanager.py | 1 +
osc_lib/shell.py | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/osc_lib/clientmanager.py b/osc_lib/clientmanager.py
index 2990c27..38d84c1 100644
--- a/osc_lib/clientmanager.py
+++ b/osc_lib/clientmanager.py
@@ -88,6 +88,7 @@ class ClientManager(object):
self._app_name = app_name
self._app_version = app_version
self.region_name = self._cli_options.region_name
+ self.keystone_region_name = self._cli_options.keystone_region_name
self.interface = self._cli_options.interface
self.timing = self._cli_options.timing
diff --git a/osc_lib/shell.py b/osc_lib/shell.py
index 27c3a57..c2a504a 100644
--- a/osc_lib/shell.py
+++ b/osc_lib/shell.py
@@ -205,6 +205,13 @@ class OpenStackShell(app.App):
default=utils.env('OS_REGION_NAME'),
help=_('Authentication region name (Env: OS_REGION_NAME)'),
)
+ parser.add_argument(
+ '--os-keystone-region-name',
+ metavar='<keystone-region-name>',
+ dest='keystone_region_name',
+ default=utils.env('OS_KEYSTONE_REGION_NAME'),
+ help=_('Keystone Authentication region name (Env: OS_KEYSTONE_REGION_NAME)'),
+ )
parser.add_argument(
'--os-cacert',
metavar='<ca-bundle-file>',
--
2.17.1

View File

@ -0,0 +1 @@
0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch