Skip to content

adb config create ignores --use-rest #376

Closed

Description

@luisremis

Per --help:

root@72c9f48d6465:/# adb config create --help

 Usage: adb config create [OPTIONS] NAME

 Create a new configuration for the client.

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *    name      TEXT  Name of this configuration for easy reference [default: None] [required]                                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --active         --no-active                  Set as active [default: no-active]                                                                                     │
│ --as-global      --no-as-global               Project level vs global level [default: as-global]                                                                     │
│ --host                               TEXT     Host name [default: localhost]                                                                                         │
│ --port                               INTEGER  Port number [default: 55555]                                                                                           │
│ --username                           TEXT     Username [default: admin]                                                                                              │
│ --password                           TEXT     Password [default: admin]                                                                                              │
│ --use-rest       --no-use-rest                Use REST [default: no-use-rest]                                                                                        │
│ --use-ssl        --no-use-ssl                 Use SSL [default: use-ssl]                                                                                             │
│ --interactive    --no-interactive             Interactive mode [default: interactive]                                                                                │
│ --help                                        Show this message and exit.                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

root@72c9f48d6465:/# adb config create default     \
                            --host=yfcc100m.datasets.gcp.aperturedata.io     --port=55555 \   
                            --username=admin    --password=admin  \ 
                            --use-rest     \
                            --no-interactive
                            
root@72c9f48d6465:/# adb config ls
[17:17:55] Available configurations:                                                                                                                     configure.py:94
           {'global': {'default': [yfcc100m.datasets.gcp.aperturedata.io:55555 as admin using TCP with SSL=True]}, 'active': 'default'}                  configure.py:95

Activity

  1. added
    bug
    on Jan 28, 2024
  2. luisremis commented on Jan 28, 2024

    @luisremis
    ContributorAuthor

    Same issue when using interactive mode:

    root@72c9f48d6465:/# adb config create default     --host=$DB_HOST     --port=$DB_PORT     --username=$DB_USER     --password=$DB_PASS   --use-rest --no-use-ssl
    Enter aperturedb host name [yfcc100m.datasets.gcp.aperturedata.io]:
    Enter aperturedb port number [55555]:
    Enter aperturedb username [admin]:
    Enter aperturedb password [admin]:
    Use REST [Y/n]: Y
    Use SSL [y/N]: N
    root@72c9f48d6465:/# adb config ls
    [17:24:35] Available configurations:                                                                                                                     configure.py:94
               {'global': {'default': [yfcc100m.datasets.gcp.aperturedata.io:55555 as admin using TCP with SSL=True]}, 'active': 'default'}                  configure.py:95
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions