ExportImportPolicyPackage icon indicating copy to clipboard operation
ExportImportPolicyPackage copied to clipboard

Option for exporting non-user-created data does not work

Open Rel1ct0 opened this issue 1 year ago • 0 comments

It is not implemented in code, basically.

If I try to export policy with system-created services (like ssh, ldap etc.), they will not be added to the resulting tar.gz, which contradicts the description of default system behavior.

The problem is in "should_export" function in export_objects.py return "domain" in obj and obj["domain"]["domain-type"] in ["domain", "global domain"] should be changed to return "domain" in obj and obj["domain"]["domain-type"] in ["domain", "global domain", "data domain"]

Also, this: parser.add_argument("--non-user-created", required=False, default="false", choices=["true", "false"], help="Indicates whether to show only user created data.\nDefault: true")

Rel1ct0 avatar Jul 31 '24 15:07 Rel1ct0