Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Improved handling of passwords when saving.
Browse files Browse the repository at this point in the history
Special characters in passwords were not being properly handled.
This addresses #120
  • Loading branch information
rmkraus committed May 4, 2021
1 parent 6c8793e commit b95ef1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 366 deletions.
5 changes: 5 additions & 0 deletions app/lib/python/conftui.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def update(self):
answer = prompt(question)
self.value = answer['newval']

def to_bash(self):
return "export {}='{}'".format(self.name,
self.value.replace("'", "'\"'\"'"))


class ChoiceParameter(Parameter):

def __init__(self, name, prompt, choices, value_reprfun=str, default=''):
Expand Down
366 changes: 0 additions & 366 deletions app/playbooks/config.d/cluster/config.py.bkp

This file was deleted.

0 comments on commit b95ef1a

Please sign in to comment.