@@ -100,10 +100,7 @@ def main():
100100 plural = "crontabs" ,
101101 )
102102 print ("%s\t \t %s" % ("NAME" , "CRON-SPEC" ))
103- print (
104- "%s\t %s\n " %
105- (resource ["metadata" ]["name" ],
106- resource ["spec" ]["cronSpec" ]))
103+ print (f"{ resource ['metadata' ]['name' ]} \t { resource ['spec' ]['cronSpec' ]} \n " )
107104
108105 # patch the `spec.cronSpec` field of the custom resource
109106 patched_resource = api .patch_cluster_custom_object (
@@ -115,10 +112,7 @@ def main():
115112 )
116113 print ("[INFO] Custom resource `test-crontab` patched to update the cronSpec schedule!\n " )
117114 print ("%s\t \t %s" % ("NAME" , "PATCHED-CRON-SPEC" ))
118- print (
119- "%s\t %s\n " %
120- (patched_resource ["metadata" ]["name" ],
121- patched_resource ["spec" ]["cronSpec" ]))
115+ print (f"{ patched_resource ['metadata' ]['name' ]} \t { patched_resource ['spec' ]['cronSpec' ]} \n " )
122116
123117 # patch the `metadata.labels` field of the custom resource
124118 patched_resource = api .patch_cluster_custom_object (
@@ -130,10 +124,7 @@ def main():
130124 )
131125 print ("[INFO] Custom resource `test-crontab` patched to apply new metadata labels!\n " )
132126 print ("%s\t \t %s" % ("NAME" , "PATCHED_LABELS" ))
133- print (
134- "%s\t %s\n " %
135- (patched_resource ["metadata" ]["name" ],
136- patched_resource ["metadata" ]["labels" ]))
127+ print (f"{ patched_resource ['metadata' ]['name' ]} \t { patched_resource ['metadata' ]['labels' ]} \n " )
137128
138129 # delete the custom resource "test-crontab"
139130 api .delete_cluster_custom_object (
0 commit comments