question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Builder properties requiring lists of lists don't seem to work

See original GitHub issue

packerlicious version

0.5.0

Expected behavior

When dealing with fields that take a list of lists, I expected to be able to to enter something like:

template.add_builder(
    builder.VirtualboxIso(
        boot_wait="10s",
        guest_os_type="Ubuntu_64",
        http_directory=HTTP_DIR,
        iso_url=ISO_URL,
        iso_checksum_type=ISO_CHECKSUM_TYPE,
        iso_checksum=ISO_CHECKSUM,
        ssh_port=22,
        shutdown_command=f'echo {ssh_pass} | sudo -S shutdown -P now',
        guest_additions_path="VBoxGuestAdditions_{{.Version}}.iso",
        virtualbox_version_file=".vbox_version",
        vm_name=VM_NAME,
        vboxmanage=[['modifyvm {{.Name}} --memory 1024'], ['modifyvm {{.Name}} --cpus 1']]
    )
)

to work. It did not.

Actual behavior

  File "pack.py", line 56, in <module>
    vboxmanage=[['modifyvm name --memory 1024'], ['modifyvm name --cpus 1']]
  File "/Users/emmanuel/5thcolumn/projects/poc/packerlicious/venv-poc-packerlicious/lib/python3.6/site-packages/packerlicious/builder.py", line 73, in __init__
    super(PackerBuilder, self).__init__(title, **kwargs)
  File "/Users/emmanuel/5thcolumn/projects/poc/packerlicious/venv-poc-packerlicious/lib/python3.6/site-packages/packerlicious/builder.py", line 67, in __init__
    super(PackerCommunicator, self).__init__(title, **kwargs)
  File "/Users/emmanuel/5thcolumn/projects/poc/packerlicious/venv-poc-packerlicious/lib/python3.6/site-packages/thirdparty/troposphere/__init__.py", line 97, in __init__
    self.__setattr__(k, v)
  File "/Users/emmanuel/5thcolumn/projects/poc/packerlicious/venv-poc-packerlicious/lib/python3.6/site-packages/thirdparty/troposphere/__init__.py", line 165, in __setattr__
    if not isinstance(v, tuple(expected_type)) \
TypeError: isinstance() arg 2 must be a type or tuple of types

Steps to reproduce

from packerlicious import builder, provisioner, Template
template = Template()
#  add VirtualboxIso builder as shown above

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mayncommented, Mar 6, 2018

Well that’s annoying! Thanks for reporting. I’m away from keyboard this week. Will patch look soon. Please report any other issues you encounter during your poc.

0reactions
mayncommented, Apr 3, 2018

Closing , unconfirmed fix by user (no response). @emmanuellyautomated would love to hear back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Helpful Illustrated Guide to Nested Lists in Python - Finxter
Solution: Use the np.array(list) function to convert a list of lists into a two-dimensional NumPy array. Here's the code:.
Read more >
Entity Framework - Code First - Can't Store List<String>
1. This is in case a list item cannot contain a string. Otherwise, you'll need to escape it. Or to serialize/deserialize the list...
Read more >
Displaying data in lists | Apple Developer Documentation
List views display collections of items vertically, load rows as needed, and add scrolling when the rows don't fit on the screen, making...
Read more >
List Properties for Marketing Cloud - Salesforce Help
Use Journey Builder to create personalized, automated multi-channel campaigns. The List Properties area contains the following information on the Tracking Data ...
Read more >
B4-1.3-08, Comparable Sales (03/02/2022)
Selection of Comparable Sales. The appraiser is responsible for determining which comparables are the best and most appropriate for the assignment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found