- updating distinct domain nodeinfos can be forced
parser.set_defaults(command=commands.update_nodeinfo)
parser.add_argument("--domain", help="Instance name (aka. domain)")
parser.add_argument("--software", help="Name of software, e.g. 'lemmy'")
+ parser.add_argument("--force", action="store_true", help="Forces update of data, no matter what.")
### Fetch instances from instances.social ###
parser = subparser_command.add_parser(
software = federation.determine_software(row["domain"])
logger.debug("Determined software='%s'", software)
- if software != row["software"] and software is not None:
+ if (software != row["software"] and software is not None) or args.force == True:
logger.warning("Software type for row[domain]='%s' has changed from '%s' to '%s'!", row["domain"], row["software"], software)
instances.set_software(row["domain"], software)