Optimize template constant

This commit is contained in:
Murat Kabilov
2017-05-12 11:41:36 +02:00
parent fd449342e5
commit 18700b9ef7
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -257,9 +257,7 @@ func (c *Cluster) credentialSecretName(username string) string {
// and must start and end with an alphanumeric character
return fmt.Sprintf(constants.UserSecretTemplate,
strings.Replace(username, "_", "-", -1),
c.Metadata.Name,
constants.TPRName,
constants.TPRVendor)
c.Metadata.Name)
}
func (c *Cluster) deleteEtcdKey() error {