Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

MGMT-1606 - allow changing hostnames during pending-for-input stage#468

Open
yevgeny-shnaidman wants to merge 1 commit into
masterfrom
yevgeny/MGMT-1606
Open

MGMT-1606 - allow changing hostnames during pending-for-input stage#468
yevgeny-shnaidman wants to merge 1 commit into
masterfrom
yevgeny/MGMT-1606

Conversation

@yevgeny-shnaidman

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread internal/host/host.go
func (m *Manager) UpdateHostname(ctx context.Context, h *models.Host, hostname string, db *gorm.DB) error {
hostStatus := swag.StringValue(h.Status)
allowedStatuses := []string{HostStatusDiscovering, HostStatusKnown, HostStatusDisconnected, HostStatusInsufficient}
allowedStatuses := []string{HostStatusDiscovering, HostStatusKnown, HostStatusDisconnected, HostStatusInsufficient, HostStatusPendingForInput}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please switch to models.HostStatus...

@filanov

filanov commented Jul 23, 2020

Copy link
Copy Markdown
Owner

@yevgeny-shnaidman @ori-amizur are doing the same #467

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants