Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix diff alignment and remove no change DC #2465

Merged
merged 2 commits into from
Mar 21, 2017
Merged

Fix diff alignment and remove no change DC #2465

merged 2 commits into from
Mar 21, 2017

Commits on Mar 21, 2017

  1. Fix output alignment and remove no-change DC

    Old Output:
    
    ```
    +/- Job: "example"
        Datacenters {
      Datacenters: "dc1"
    }
    +/- Task Group: "cache" (1 create/destroy update)
      +/- RestartPolicy {
        +/- Attempts: "10" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
      }
      +/- EphemeralDisk {
            Migrate: "false"
        +/- SizeMB:  "300" => "301"
            Sticky:  "false"
      }
      +/- Task: "redis" (forces create/destroy update)
        +   Meta[key]: "value"
        +/- Config {
              image:           "redis:3.2"
          +/- port_map[0][db]: "6379" => "6380"
        }
        +/- Resources {
              CPU:      "500"
              DiskMB:   "0"
              IOPS:     "0"
          +/- MemoryMB: "256" => "257"
        }
        +/- Service {
              Name:      "global-redis-check"
              PortLabel: "db"
          +/- Check {
                Command:       ""
                InitialStatus: ""
                Interval:      "10000000000"
                Name:          "alive"
                Path:          ""
                PortLabel:     ""
                Protocol:      ""
            +/- Timeout:       "2000000000" => "3000000000"
                Type:          "tcp"
          }
        }
    ```
    
    New Output:
    
    ```
    +/- Job: "example"
    +/- Task Group: "cache" (1 create/destroy update)
      +/- RestartPolicy {
        +/- Attempts: "10" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
      +/- EphemeralDisk {
            Migrate: "false"
        +/- SizeMB:  "300" => "301"
            Sticky:  "false"
          }
      +/- Task: "redis" (forces create/destroy update)
        +   Meta[key]: "value"
        +/- Config {
              image:           "redis:3.2"
          +/- port_map[0][db]: "6379" => "6380"
            }
        +/- Resources {
              CPU:      "500"
              DiskMB:   "0"
              IOPS:     "0"
          +/- MemoryMB: "256" => "257"
            }
        +/- Service {
              Name:      "global-redis-check"
              PortLabel: "db"
          +/- Check {
                Command:       ""
                InitialStatus: ""
                Interval:      "10000000000"
                Name:          "alive"
                Path:          ""
                PortLabel:     ""
                Protocol:      ""
            +/- Timeout:       "2000000000" => "3000000000"
                Type:          "tcp"
              }
            }
    ```
    dadgar committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    456da65 View commit details
    Browse the repository at this point in the history
  2. Fix diff alignment and remove no change DC

    Old Output:
    ```
    +/- Job: "example"
        Datacenters {
      Datacenters: "dc1"
    }
    +/- Task Group: "cache" (1 create/destroy update)
      +/- RestartPolicy {
        +/- Attempts: "10" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
      }
      +/- EphemeralDisk {
            Migrate: "false"
        +/- SizeMB:  "300" => "301"
            Sticky:  "false"
      }
      +/- Task: "redis" (forces create/destroy update)
        +   Meta[key]: "value"
        +/- Config {
              image:           "redis:3.2"
          +/- port_map[0][db]: "6379" => "6380"
        }
        +/- Resources {
              CPU:      "500"
              DiskMB:   "0"
              IOPS:     "0"
          +/- MemoryMB: "256" => "257"
        }
        +/- Service {
              Name:      "global-redis-check"
              PortLabel: "db"
          +/- Check {
                Command:       ""
                InitialStatus: ""
                Interval:      "10000000000"
                Name:          "alive"
                Path:          ""
                PortLabel:     ""
                Protocol:      ""
            +/- Timeout:       "2000000000" => "3000000000"
                Type:          "tcp"
          }
        }
    ```
    
    New Output:
    ```
    +/- Job: "example"
    +/- Task Group: "cache" (1 create/destroy update)
      +/- RestartPolicy {
        +/- Attempts: "10" => "9"
            Delay:    "25000000000"
            Interval: "300000000000"
            Mode:     "delay"
          }
      +/- EphemeralDisk {
            Migrate: "false"
        +/- SizeMB:  "300" => "301"
            Sticky:  "false"
          }
      +/- Task: "redis" (forces create/destroy update)
        +   Meta[key]: "value"
        +/- Config {
              image:           "redis:3.2"
          +/- port_map[0][db]: "6379" => "6380"
            }
        +/- Resources {
              CPU:      "500"
              DiskMB:   "0"
              IOPS:     "0"
          +/- MemoryMB: "256" => "257"
            }
        +/- Service {
              Name:      "global-redis-check"
              PortLabel: "db"
          +/- Check {
                Command:       ""
                InitialStatus: ""
                Interval:      "10000000000"
                Name:          "alive"
                Path:          ""
                PortLabel:     ""
                Protocol:      ""
            +/- Timeout:       "2000000000" => "3000000000"
                Type:          "tcp"
              }
            }
    ```
    dadgar committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    c4435ee View commit details
    Browse the repository at this point in the history