diff options
Diffstat (limited to 'cloudinit/distros')
-rw-r--r-- | cloudinit/distros/alpine.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/distros/alpine.py b/cloudinit/distros/alpine.py index 73b68baf..e82965fd 100644 --- a/cloudinit/distros/alpine.py +++ b/cloudinit/distros/alpine.py @@ -128,6 +128,9 @@ class Distro(distros.Distro): if command: cmd.append(command) + if command == 'upgrade': + cmd.extend(["--update-cache", "--available"]) + pkglist = util.expand_package_list('%s-%s', pkgs) cmd.extend(pkglist) |