Skip to content

Commit fd6b7cf

Browse files
CryptophobiaKingdon Barrett
authored andcommitted
ref(mock.py): reduce line length for style check
1 parent d1120ca commit fd6b7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rootfs/scheduler/mock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def upsert_pods(controller, url):
391391
# turn RC / RS (which a Deployment creates) url into pods one
392392
url = url.replace(cache_key(controller['metadata']['name']), '')
393393
if '_replicasets_' in url:
394-
# We need to try to replace both just in case, one or the other exists (api backwards compatibility)
394+
# Try replacing both just in case one or the other exists (api backwards compatibility)
395395
url = url.replace('_replicasets_', '_pods').replace('apis_apps_v1', 'api_v1') # noqa
396396
url = url.replace('_replicasets_', '_pods').replace('apis_extensions_v1beta1', 'api_v1') # noqa
397397
else:
@@ -515,7 +515,7 @@ def manage_replicasets(deployment, url):
515515
def update_deployment_status(namespaced_url, url, deployment, rs):
516516
# Fill out deployment.status for success as pods transition to running state
517517
pod_url = namespaced_url.replace('_replicasets', '_pods').replace('apis_apps_v1', 'api_v1') # noqa
518-
# We need to try to replace both just in case, one or the other exists (api backwards compatibility)
518+
# Try replacing both just in case one or the other exists (api backwards compatibility)
519519
pod_url = pod_url.replace('_replicasets', '_pods').replace('apis_extensions_v1beta1', 'api_v1') # noqa
520520
while True:
521521
# The below needs to be done to emulate Deployment handling things

0 commit comments

Comments
 (0)