fixed pylint error on format string

This commit is contained in:
Tyler Johnson 2019-08-13 16:13:31 -06:00
parent 59e20bc792
commit 8c5eb18d34
No known key found for this signature in database
GPG key ID: 691E31397E27D004

View file

@ -79,7 +79,7 @@ class CloudTest(ShellCase):
# Create the cloud instance name to be used throughout the tests
subclass = self.__class__.__bases__[0].__name__.strip('Test')
# Use the first three letters of the subclass, fill with '-' if too short
self.__instance_name = generate_random_name('cloud-test-{.-<3.3}-'.format(subclass)).lower()
self.__instance_name = generate_random_name('cloud-test-{:-<3}-'.format(subclass[:3])).lower()
return self.__instance_name
@property