Make ParseDevice public
This reverts the change in 5170a2c096
that made ParseDevice private
Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
parent
c19a00d4cb
commit
421786e925
1 changed files with 3 additions and 2 deletions
|
@ -283,7 +283,7 @@ func Parse(cmd *flag.FlagSet, args []string) (*Config, *HostConfig, *flag.FlagSe
|
|||
// parse device mappings
|
||||
deviceMappings := []DeviceMapping{}
|
||||
for _, device := range flDevices.GetAll() {
|
||||
deviceMapping, err := parseDevice(device)
|
||||
deviceMapping, err := ParseDevice(device)
|
||||
if err != nil {
|
||||
return nil, nil, cmd, err
|
||||
}
|
||||
|
@ -487,7 +487,8 @@ func parseKeyValueOpts(opts opts.ListOpts) ([]KeyValuePair, error) {
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func parseDevice(device string) (DeviceMapping, error) {
|
||||
// ParseDevice parses a device mapping string to a DeviceMapping struct
|
||||
func ParseDevice(device string) (DeviceMapping, error) {
|
||||
src := ""
|
||||
dst := ""
|
||||
permissions := "rwm"
|
||||
|
|
Loading…
Reference in a new issue