From a6d4ee0316464ed8727766a7c2d3d800a39a9d91 Mon Sep 17 00:00:00 2001 From: beelit94 Date: Tue, 9 May 2017 16:09:28 +0800 Subject: [PATCH] refactor readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86a4d92..a9548ac 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,13 @@ python-terraform is a python module provide a wrapper of `terraform` command lin t = Terraform() return_code, stdout, stderr = t.(*arguments, **options) -**Note**: method name same as reserved keyword like `import` could be called directly -by adding `_cmd` after command name +**Note**: method name same as reserved keyword like `import` won't be accepted by python interpreter, +to be able to call the method, you could call cmd_name by adding `_cmd` after command name, for example, +`import` here could be called by from python_terraform import Terraform t = Terraform() - return_code, stdout, stderr = t._cmd(*arguments, **options) + return_code, stdout, stderr = t.import_cmd(*arguments, **options) or just call cmd method directly