diff options
author | Daniel Watkins <daniel.watkins@canonical.com> | 2017-05-25 10:21:21 -0800 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-05-25 15:34:49 -0400 |
commit | d27c49391df343d25bd2e24045d2be6bf39c30d2 (patch) | |
tree | bcd84badada315d4d724e1a68d4a45b5ef212e99 /cloudinit/sources/DataSourceGCE.py | |
parent | 910ed46124e992eb20e49ea156b7127cd3ebbe9d (diff) | |
download | vyos-cloud-init-d27c49391df343d25bd2e24045d2be6bf39c30d2.tar.gz vyos-cloud-init-d27c49391df343d25bd2e24045d2be6bf39c30d2.zip |
GCE: Update the attribute used to find instance SSH keys.
Per the documentation at
https://cloud.google.com/compute/docs/storing-retrieving-metadata
The instance-level SSH key was named 'sshKeys' and now is 'ssh-keys'.
The project-level SSH key attribute has not changed so is intentionally
not changed here.
LP: #1693582
Diffstat (limited to 'cloudinit/sources/DataSourceGCE.py')
-rw-r--r-- | cloudinit/sources/DataSourceGCE.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py index e9afda9c..684eac86 100644 --- a/cloudinit/sources/DataSourceGCE.py +++ b/cloudinit/sources/DataSourceGCE.py @@ -71,7 +71,7 @@ class DataSourceGCE(sources.DataSource): ('availability-zone', ('instance/zone',), True, True), ('local-hostname', ('instance/hostname',), True, True), ('public-keys', ('project/attributes/sshKeys', - 'instance/attributes/sshKeys'), False, True), + 'instance/attributes/ssh-keys'), False, True), ('user-data', ('instance/attributes/user-data',), False, False), ('user-data-encoding', ('instance/attributes/user-data-encoding',), False, True), |