Skip to content

Commit 1a2e1c6

Browse files
author
Sanjay Prabhakar
committed
[patch] fix precommit errors
1 parent 627794c commit 1a2e1c6

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/mas/devops/mas.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def updateIBMEntitlementKey(dynClient: DynamicClient, namespace: str, icrUsernam
196196
secret = secretsAPI.apply(body=secret, namespace=namespace)
197197
return secret
198198

199+
199200
def waitForPVC(dynClient: DynamicClient, namespace: str, pvcName: str) -> bool:
200201
pvcAPI = dynClient.resources.get(api_version="v1", kind="PersistentVolumeClaim")
201202
maxRetries = 60
@@ -213,6 +214,7 @@ def waitForPVC(dynClient: DynamicClient, namespace: str, pvcName: str) -> bool:
213214
except NotFoundError:
214215
logger.debug("Waiting 5s for PVC {pvcName} to be created before checking again ...")
215216
sleep(5)
217+
216218
return foundReadyPVC
217219

218220

src/mas/devops/ocp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def waitForDeployment(dynClient: DynamicClient, namespace: str, deploymentName:
157157
sleep(5)
158158
return foundReadyDeployment
159159

160+
160161
def getConsoleURL(dynClient: DynamicClient) -> str:
161162
routesAPI = dynClient.resources.get(api_version="route.openshift.io/v1", kind="Route")
162163
consoleRoute = routesAPI.get(name="console", namespace="openshift-console")

src/mas/devops/tekton.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
logger = logging.getLogger(__name__)
2929

30+
3031
# customStorageClassName is used when no default Storageclass is available on cluster,
3132
# openshift-pipelines creates PVC which looks for default. customStorageClassName is patched into PVC when default is unavailable.
3233
def installOpenShiftPipelines(dynClient: DynamicClient, customStorageClassName: str = None) -> bool:

0 commit comments

Comments
 (0)