Skip to content

Commit 9330560

Browse files
authoredFeb 28, 2025··
fix: use snake_case for import operations (#110)
1 parent 238d21a commit 9330560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎client/boot_resources.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (b *BootResources) Import() error {
4848
// IsImporting returns importing status of boot resources importing to rack controllers
4949
func (b *BootResources) IsImporting() (bool, error) {
5050
isImporting := new(bool)
51-
err := b.client().Get("is-importing", url.Values{}, func(data []byte) error {
51+
err := b.client().Get("is_importing", url.Values{}, func(data []byte) error {
5252
return json.Unmarshal(data, isImporting)
5353
})
5454

@@ -57,7 +57,7 @@ func (b *BootResources) IsImporting() (bool, error) {
5757

5858
// StopImport stops importing boot resources to rack controllers
5959
func (b *BootResources) StopImport() error {
60-
return b.client().Post("stop-import", url.Values{}, func(data []byte) error {
60+
return b.client().Post("stop_import", url.Values{}, func(data []byte) error {
6161
return nil
6262
})
6363
}

0 commit comments

Comments
 (0)
Please sign in to comment.