mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
import: three minor fixes
This commit is contained in:
parent
a36544cd45
commit
0c7bf33a98
@ -1131,7 +1131,7 @@ int dkr_import_pull(DkrImport *import, const char *name, const char *tag, const
|
|||||||
n->force_local = force_local;
|
n->force_local = force_local;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = hashmap_put(import->names, name, n);
|
r = hashmap_put(import->names, n->name, n);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
|
|||||||
local = name;
|
local = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streq(local, "-") || isempty(local))
|
if (isempty(local) || streq(local, "-"))
|
||||||
local = NULL;
|
local = NULL;
|
||||||
|
|
||||||
if (!dkr_name_is_valid(name)) {
|
if (!dkr_name_is_valid(name)) {
|
||||||
@ -89,7 +89,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
|
|||||||
if (local) {
|
if (local) {
|
||||||
const char *p;
|
const char *p;
|
||||||
|
|
||||||
if (!machine_name_is_valid(tag)) {
|
if (!machine_name_is_valid(local)) {
|
||||||
log_error("Local image name '%s' is not valid.", local);
|
log_error("Local image name '%s' is not valid.", local);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user