Fixed bug were the minimum keysize could be greater than 2048.

Looks like this was introduced in saltstack/salt@4981752f1d
This commit is contained in:
Paulo Tioseco 2012-07-15 17:16:53 -07:00
parent b95b9fd1e1
commit a3ba6d1643

View File

@ -651,7 +651,7 @@ class SaltKey(object):
for k, v in options.__dict__.items(): for k, v in options.__dict__.items():
if k == 'keysize': if k == 'keysize':
if v < 2048: if v < 2048:
opts[k] = v opts[k] = 2048
else: else:
opts[k] = v opts[k] = v
elif v is not None: elif v is not None: