You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2020. It is now read-only.
LOGGER.debug("Snapshot will be created for '"+this_name+"' (P:"+row[repcols["system_prod"]] +")")
326
337
else:
327
338
LOGGER.debug("Script parameters are avoiding creating snapshot for '"+this_name+"' (P:"+row[repcols["system_prod"]] +")")
@@ -353,14 +364,18 @@ def main(options):
353
364
#schedule downtimes and create snapshots
354
365
ifoptions.skipMonitoring==False: setDowntimes()
355
366
ifoptions.skipSnapshot==False: createSnapshots()
367
+
#also verify
368
+
ifoptions.dryrun==False:
369
+
LOGGER.info("Verifying preparation...")
370
+
verify()
356
371
357
372
358
373
359
374
defparse_options(args=None):
360
375
ifargsisNone:
361
376
args=sys.argv
362
377
363
-
#define usage, description, version and load parser
378
+
#define usage, description, version and load parser
364
379
usage="usage: %prog [options] snapshot.csv"
365
380
desc='''%prog is used to prepare maintenance for systems managed with Spacewalk, Red Hat Satellite or SUSE Manager. This includes (un)scheduling downtimes in Nagios, Icinga and Shinken and creating/removing snapshots of virtual machines. As this script uses libvirt multiple hypervisors are supported (see GitHub and libvirt documenation). Login credentials are assigned using the following shell variables:
#snapOpts.add_option("-f", "--field", action="append", type="choice", dest="fields", choices=POSSIBLE_FIELDS, metavar="FIELDS", help="defines which fields should be integrated in the report (default: all available)")
77
78
#-p / --include-patches
78
79
snapOpts.add_option("-p", "--include-patches", action="store_true", default=False, dest="includePatches", help="defines whether package updates that are not part of an erratum shall be included (default: no)")
80
+
#-l / --include-locked
81
+
snapOpts.add_option("-l", "--include-locked", action="store_true", default=False, dest="includeLocked", help="also includes locked systems (default: no)")
0 commit comments