From 6585abe4e6de40463d6c034dabfe6aa038568f56 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 21 Jun 2022 10:34:56 +0200 Subject: [PATCH] mgr/dashboard: fix linting issues Signed-off-by: Pere Diaz Bou --- .../src/app/core/error/error.component.html | 9 +++++---- .../app/core/error/error.component.spec.ts | 7 +------ src/pybind/mgr/dashboard/openapi.yaml | 19 +------------------ 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html index 79defcc041b20..164c181dab4bb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html @@ -7,15 +7,16 @@
+ class="mx-auto d-block">

{{ header }}

{{ message }}

-

Please consult the documentation on how to configure and enable - the {{ sectionInfo }} management functionality.

+

Please consult the documentation on how to configure and enable + the {{ sectionInfo }} management functionality. +

diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts index 65b93330033fb..5763d4d975fb6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts @@ -14,12 +14,7 @@ describe('ErrorComponent', () => { configureTestBed({ declarations: [ErrorComponent], - imports: [ - HttpClientTestingModule, - RouterTestingModule, - SharedModule, - ToastrModule.forRoot() - ] + imports: [HttpClientTestingModule, RouterTestingModule, SharedModule, ToastrModule.forRoot()] }); beforeEach(() => { diff --git a/src/pybind/mgr/dashboard/openapi.yaml b/src/pybind/mgr/dashboard/openapi.yaml index f81560e9ec0b6..2d24c7a249392 100644 --- a/src/pybind/mgr/dashboard/openapi.yaml +++ b/src/pybind/mgr/dashboard/openapi.yaml @@ -7228,26 +7228,9 @@ paths: application/json: schema: properties: - application_metadata: - type: string - configuration: - type: string - erasure_code_profile: - type: string - flags: - type: string - pg_num: - type: integer pool: + default: rbd-mirror type: string - pool_type: - type: string - rule_name: - type: string - required: - - pool - - pg_num - - pool_type type: object responses: '201': -- 2.39.5