Drop unused default password in create_stack_user
All calls of create_stack_user has the password argument set. Change-Id: I267536b4b2b121c2bb921d024cc3e04400cbf211
This commit is contained in:
parent
313a5afa6a
commit
1d3b0073e0
@ -51,7 +51,7 @@ class FakeKeystoneClient(object):
|
||||
secret = self.secret
|
||||
self.creds = FakeCred()
|
||||
|
||||
def create_stack_user(self, username, password=''):
|
||||
def create_stack_user(self, username, password):
|
||||
self.username = username
|
||||
return self.user_id
|
||||
|
||||
|
@ -283,7 +283,7 @@ class KsClientWrapper(object):
|
||||
# get the last 255 characters of the username
|
||||
return username[-255:]
|
||||
|
||||
def create_stack_user(self, username, password=''):
|
||||
def create_stack_user(self, username, password):
|
||||
"""Create a user defined as part of a stack.
|
||||
|
||||
The user is defined either via template or created internally by a
|
||||
|
3
tox.ini
3
tox.ini
@ -101,7 +101,6 @@ deps =
|
||||
# The following bandit tests are being skipped:
|
||||
# B101: Test for use of assert
|
||||
# B104: Test for binding to all interfaces
|
||||
# B107: Test for use of hard-coded password argument defaults
|
||||
# B110: Try, Except, Pass detected.
|
||||
# B113: Requests call without timeout
|
||||
# B310: Audit url open for permitted schemes
|
||||
@ -112,7 +111,7 @@ deps =
|
||||
# B506: Test for use of yaml load
|
||||
# B603: Test for use of subprocess with shell equals true
|
||||
# B607: Test for starting a process with a partial path
|
||||
commands = bandit -r heat -x tests --skip B101,B104,B107,B110,B113,B310,B311,B404,B410,B504,B506,B603,B607
|
||||
commands = bandit -r heat -x tests --skip B101,B104,B110,B113,B310,B311,B404,B410,B504,B506,B603,B607
|
||||
|
||||
[flake8]
|
||||
show-source = true
|
||||
|
Loading…
Reference in New Issue
Block a user