compose_format icon indicating copy to clipboard operation
compose_format copied to clipboard

TypeError: unorderable types: CommentedMap() < CommentedMap()

Open GordianDziwis opened this issue 5 years ago • 0 comments

version: '3.3'

services:
  nifi:
    container_name: nifi
    image: apache/nifi:1.7.1
    environment:
      NIFI_WEB_HTTP_PORT: '8443'
      NIFI_WEB_PROXY_HOST: '0.0.0.0'
    volumes:
      - type: bind
        source: ./certs
        target: /opt/certs
      - type: volume
        target: /opt/nifi/nifi-1.7.1/conf
      - type: volume
        target: /opt/nifi/nifi-1.7.1/content_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/database_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/flowfile_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/provenance_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/logs
      - type: volume
        target: /opt/nifi/nifi-1.7.1/data
    restart: always
    network_mode: "host"
    ports:
      - 8443:8443

Give following error with the docker command:

Traceback (most recent call last):
  File "/bin/compose_format", line 28, in <module>
    formatted = formatter.format_string(data, strict=not args.non_strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 77, in format_string
    data = self.reorder(load(data, RoundTripLoader), strict=strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 101, in reorder
    data.sort()
TypeError: unorderable types: CommentedMap() < CommentedMap()

GordianDziwis avatar Aug 21 '18 14:08 GordianDziwis