Use Python 2.6 compatible string.format calls (3)

This commit is contained in:
Alessio Sergi 2016-03-11 19:00:00 +01:00
parent ebd5f60962
commit 15051499c4

View File

@ -273,17 +273,17 @@ Start the client browser (browser mode):\n\
# Interactive or file password
if args.server:
args.password = self.__get_password(
description='Define the Glances server password ({} username): '.format(args.username),
description='Define the Glances server password ({0} username): '.format(args.username),
confirm=True,
username=args.username)
elif args.webserver:
args.password = self.__get_password(
description='Define the Glances webserver password ({} username): '.format(args.username),
description='Define the Glances webserver password ({0} username): '.format(args.username),
confirm=True,
username=args.username)
elif args.client:
args.password = self.__get_password(
description='Enter the Glances server password({} username): '.format(args.username),
description='Enter the Glances server password ({0} username): '.format(args.username),
clear=True,
username=args.username)
else: