Skip to content

Commit

Permalink
Fix CCDB_USER environment variable work
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Apr 21, 2024
1 parent 8f47ada commit 3667ddd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/ccdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def init_ccdb_console():
logger.debug("--errors-silent flag. Print errors and return non 0 code but don't raise python exceptions")
context.exception_handling = CCDB_EXCEPTIONS_SILENT




# CONNECTION STRING
# ------------------------------

Expand Down
11 changes: 11 additions & 0 deletions python/ccdb/cmd/cli_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ def theme(self, value):
log.debug(lfm(" |- theme(value) {0} | \\{0} | |- theme switched to : '{1}'", os.linesep, value))
self.context.theme = value

@property
def user_name(self):
"""":rtype: str"""
return self.context.user_name

@user_name.setter
def user_name(self, value):
self.context.user_name = value



# =====================================================================================
# ------------------ C O M M A N D S M A N A G E M E N T ---------------------------
# =====================================================================================
Expand Down

0 comments on commit 3667ddd

Please sign in to comment.