Project

Profile

Help

Issue #1074

closed

Failing to specify an auto-publish value results in a null value

Added by jcline@redhat.com about 7 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version - OSTree:
master
Platform Release:
Target Release - OSTree:
1.0.0
OS:
Fedora 21
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The CLI documentation states the --auto-publish value defaults to 'true' when you create a new ostree repository:

(pulp)[vagrant@pulp-devel pulp_ostree]$ pulp-admin ostree repo create --help
Command: create
Description: creates a new repository

Available Arguments:
...
  --auto-publish  - if "true", on each successful sync the repository will
                    automatically be published; if "false" content will only be
                    available after manually publishing the repository; defaults
                    to "true"

However if you don't provide a value explicitly the actual default is null:

{
    "_ns": "repo_distributors",
    "auto_publish": null,
    "config": {
        "relative_path": "/repo/"
    },
    "distributor_type_id": "ostree_web_distributor",
    "id": "ostree_web_distributor_name_cli",
    "last_publish": null,
    "repo_id": "test",
    "scheduled_publishes": [],
    "scratchpad": null
}

This results in no auto-publishes

Also available in: Atom PDF