You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/08 02:30:57 UTC
[26/27] libcloud git commit: lint fixes in doc examples Closes #876
lint fixes in doc examples
Closes #876
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5f1d6bcf
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5f1d6bcf
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5f1d6bcf
Branch: refs/heads/trunk
Commit: 5f1d6bcff2022b4f5470674a4de1eb5f62bd2e56
Parents: 87c9501
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Fri Oct 7 22:08:25 2016 -0400
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 8 13:29:30 2016 +1100
----------------------------------------------------------------------
docs/examples/container/rancher/deploy_container.py | 1 +
docs/examples/container/rancher/deploy_service.py | 2 +-
docs/examples/container/rancher/deploy_stack.py | 2 +-
docs/examples/container/rancher/search_containers.py | 4 ++--
4 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5f1d6bcf/docs/examples/container/rancher/deploy_container.py
----------------------------------------------------------------------
diff --git a/docs/examples/container/rancher/deploy_container.py b/docs/examples/container/rancher/deploy_container.py
index 51b64b2..d783853 100644
--- a/docs/examples/container/rancher/deploy_container.py
+++ b/docs/examples/container/rancher/deploy_container.py
@@ -1,5 +1,6 @@
from libcloud.container.types import Provider
from libcloud.container.providers import get_driver
+from libcloud.container.base import ContainerImage
driver = get_driver(Provider.RANCHER)
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5f1d6bcf/docs/examples/container/rancher/deploy_service.py
----------------------------------------------------------------------
diff --git a/docs/examples/container/rancher/deploy_service.py b/docs/examples/container/rancher/deploy_service.py
index 036aa1c..2df6486 100644
--- a/docs/examples/container/rancher/deploy_service.py
+++ b/docs/examples/container/rancher/deploy_service.py
@@ -1,5 +1,6 @@
from libcloud.container.types import Provider
from libcloud.container.providers import get_driver
+from libcloud.container.base import ContainerImage
driver = get_driver(Provider.RANCHER)
@@ -14,4 +15,3 @@ new_service = connection.ex_deploy_service(name="excitingservice", image=image,
environment={
"STORAGE_TYPE": "file"
})
-
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5f1d6bcf/docs/examples/container/rancher/deploy_stack.py
----------------------------------------------------------------------
diff --git a/docs/examples/container/rancher/deploy_stack.py b/docs/examples/container/rancher/deploy_stack.py
index 52d5122..222a316 100644
--- a/docs/examples/container/rancher/deploy_stack.py
+++ b/docs/examples/container/rancher/deploy_stack.py
@@ -10,4 +10,4 @@ new_stack = connection.ex_deploy_stack(name="GhostBlog",
description="Contains services for the"
"ghost blog.")
-id_of_new_stack = new_stack['id']
\ No newline at end of file
+id_of_new_stack = new_stack['id']
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5f1d6bcf/docs/examples/container/rancher/search_containers.py
----------------------------------------------------------------------
diff --git a/docs/examples/container/rancher/search_containers.py b/docs/examples/container/rancher/search_containers.py
index 8e7d632..a41ecc3 100644
--- a/docs/examples/container/rancher/search_containers.py
+++ b/docs/examples/container/rancher/search_containers.py
@@ -7,6 +7,6 @@ connection = driver("MYRANCHERACCESSKEY", "MYRANCHERSECRETKEY",
host="172.30.22.1", port=8080, secure=False)
search_results = connection.ex_search_containers(
- search_params={ "imageUuid": "docker:mysql", "state": "running" })
+ search_params={"imageUuid": "docker:mysql", "state": "running"})
-id_of_first_result = search_results[0]['id']
\ No newline at end of file
+id_of_first_result = search_results[0]['id']