Fixing enterprise init order. (#9912)

This commit is contained in:
Christopher Speller
2018-11-29 10:12:05 -08:00
committed by GitHub
parent 6d9b4bc277
commit acd2deaca3

View File

@@ -111,9 +111,6 @@ func (s *Server) initEnterprise() {
if accountMigrationInterface != nil {
s.AccountMigration = accountMigrationInterface(s.FakeApp())
}
if clusterInterface != nil {
s.Cluster = clusterInterface(s.FakeApp())
}
if complianceInterface != nil {
s.Compliance = complianceInterface(s.FakeApp())
}
@@ -146,4 +143,7 @@ func (s *Server) initEnterprise() {
if dataRetentionInterface != nil {
s.DataRetention = dataRetentionInterface(s.FakeApp())
}
if clusterInterface != nil {
s.Cluster = clusterInterface(s.FakeApp())
}
}