From 143ee521e30ffaea3c0b9984bf52cd9ae04c4e39 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 Resolves: rhbz#1891012 Signed-off-by: Pere Diaz Bou (cherry picked from commit 536c3833d990c95cd7b8e46e84abc43d7ffe8607) --- .../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 259afc5139851..5bda4e0476c4a 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 37cc0872b145e..6c919598a6582 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