Packer issue with Autoinstall user-data

I’m hitting a strange issue and i’m guessing its a user-data issue. As it seems like its hitting cloud-init and doing something but then its bombing out with the following error.

Versions
Ubuntu 20.04 server
Packer version 1.9.1
Running from Ubuntu 20.04 desktop

#cloud-config
autoinstall:
  version: 1
  identity: 
    hostname: ubuntu-server
    password: "$encrypt"
    realname: ubuntu
    username: ubuntu
  network:
    network:
      version: 2       
      ethernets:
        enp0s3:
          dhcp4: no
          addresses: blah
          gateway4: blah
          nameservers: 
            addresses:blah
  keyboard: 
    layout: uk
  locale: en_UK
  ssh:
    allow-pw: yes
    install-server: true

Try changing your locale to en_GB - the one you have at the moment is invalid.

Hello i tried that variation and got the same result. Maybe it’s the media I had downloaded I will check that.

Cheers

One more catch, “layout: gb” rather than “layout: uk” - missed that first time I looked at the settings.