diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 16:20:12 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 16:34:23 +0000 |
commit | ca488a6d7b6f5701b63249d5a0c73eada09c432c (patch) | |
tree | 85eba69be93a141a99b040a27e74ac61ba54c6c8 /lua/tests/025-create-flags.lua | |
parent | 8f80f9fdae13a320da978dffa2c9d94e7b68a810 (diff) | |
download | libguestfs-ca488a6d7b6f5701b63249d5a0c73eada09c432c.tar.gz libguestfs-ca488a6d7b6f5701b63249d5a0c73eada09c432c.tar.xz libguestfs-ca488a6d7b6f5701b63249d5a0c73eada09c432c.zip |
lua: Various fixes to the bindings (thanks Jerome Vuarand).
See http://article.gmane.org/gmane.comp.lang.lua.general/95065
Note that this is incompatible with existing code. You
have to do:
local G = require "guestfs"
local g = G.create ()
ie. give the module your own name ("G" in that example).
Diffstat (limited to 'lua/tests/025-create-flags.lua')
-rwxr-xr-x | lua/tests/025-create-flags.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/tests/025-create-flags.lua b/lua/tests/025-create-flags.lua index 881b1834..08865c70 100755 --- a/lua/tests/025-create-flags.lua +++ b/lua/tests/025-create-flags.lua @@ -16,6 +16,6 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -require "guestfs" +local G = require "guestfs" -local g = Guestfs.create { environment = 0 } +local g = G.create { environment = 0 } |