You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/12/20 22:22:51 UTC
[libcloud] 02/06: Declare that GCE driver supports SSH key based
deployment functionality.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit ec8157aef5229c8adb14d52f43dcf5e5a65a57b3
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Dec 20 23:01:29 2019 +0100
Declare that GCE driver supports SSH key based deployment functionality.
---
libcloud/compute/drivers/gce.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 7edfc59..06cd1d1 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -12,9 +12,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
"""
Module for Google Compute Engine Driver.
"""
+
from __future__ import with_statement
import datetime
@@ -1735,6 +1737,7 @@ class GCENodeDriver(NodeDriver):
name = "Google Compute Engine"
type = Provider.GCE
website = 'https://cloud.google.com/'
+ features = {'create_node': ['ssh_key']}
# Google Compute Engine node states are mapped to Libcloud node states
# per the following dict. GCE does not have an actual 'stopped' state
@@ -3995,7 +3998,7 @@ class GCENodeDriver(NodeDriver):
ex_on_host_maintenance=None, ex_automatic_restart=None,
ex_preemptible=None, ex_image_family=None, ex_labels=None,
ex_accelerator_type=None, ex_accelerator_count=None,
- ex_disk_size=None, **kwargs):
+ ex_disk_size=None, auth=None):
"""
Create a new node and return a node object for the node.