@@ -180,11 +180,7 @@ def check(
180180 )
181181 return True
182182
183- def update_blueprint (
184- self ,
185- project_name : str = "" ,
186- dry_run : bool = False
187- ) -> bool :
183+ def update_blueprint (self , project_name : str = "" , dry_run : bool = False ) -> bool :
188184 """Update the blueprint associated with the specified machines."""
189185 print ("Updating the CloudEndure Blueprints..." )
190186
@@ -207,7 +203,7 @@ def update_blueprint(
207203 machine_list [machine_id ] = machine_name
208204
209205 if not machine_list :
210- print ("No Machines Found!" )
206+ print ("No Machines Found!" )
211207 return False
212208
213209 try :
@@ -222,16 +218,14 @@ def update_blueprint(
222218 _endpoint = f"projects/{ project_id } /blueprints/{ _blueprint_id } "
223219 # Handle disk blueprints since we don't want provisioned IOPS $$$$
224220 for disk in blueprint ["disks" ]:
225- blueprint ["disks" ] = [
226- {"type" : "SSD" , "name" : disk .get ("name" , "" )}
227- ]
221+ blueprint ["disks" ] = [{"type" : "SSD" , "name" : disk .get ("name" , "" )}]
228222
229223 # Update machine tags
230224 blueprint ["tags" ] = [
231- { "key" : "CloneStatus" , "value" : CLONE_STATUS },
232- { "key" : "MigrationWave" , "value" : MIGRATION_WAVE }
225+ {"key" : "CloneStatus" , "value" : CLONE_STATUS },
226+ {"key" : "MigrationWave" , "value" : MIGRATION_WAVE },
233227 ]
234-
228+
235229 if dry_run :
236230 print ("This is a dry run! Not launching any machines!" )
237231 return True
0 commit comments