mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removed subclass from cloud name
This commit is contained in:
parent
8c5eb18d34
commit
b7cf43d98f
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ class CloudTest(ShellCase):
|
|||
def instance_name(self):
|
||||
if not hasattr(self, '__instance_name'):
|
||||
# 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}-'.format(subclass[:3])).lower()
|
||||
self.__instance_name = generate_random_name('cloud-test-').lower()
|
||||
return self.__instance_name
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Reference in a new issue