Deployment update preview fails when updating deployment dependencies

Description

Currently, the inter deployment dependencies table is updated also when `preview` is set to true. This happens because of this line that comes before the `preview` option is checked here.
An easy fix would just be to move the line to be after the `if` block (as referenced above), but then the inter deployment dependencies table won't be updated and so the deployment dependencies graph would just use the dependencies of the original deployment (and not the new one).

To sum up, we need to find a way to create a new deployment dependencies graph from the new deployment, without really updating the inter-deployment-dependencies table.

Steps to Reproduce

Go over the steps here https://cloudifysource.atlassian.net/browse/CY-3242 and use `--preview` when updating the deployment.

Why Propose Close?

None

Assignee

Yoni Itzhak

Reporter

Yoni Itzhak

Labels

Severity

Low

Target Version

5.1

Premium Only

no

Found In Version

5.1

QA Owner

None

Bug Type

new feature bug

Customer Encountered

No

Customer Name

None

Release Notes

no

Priority

None

Epic Link

Sprint

None

Priority

Unprioritized
Configure